mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Activate compilation warnings for non-strict prototypes in C.
This commit is contained in:
parent
1249c3391e
commit
33e1a26452
4 changed files with 5 additions and 5 deletions
|
|
@ -219,7 +219,7 @@ set(STRICT_OPTIONS_C )
|
|||
set(STRICT_OPTIONS_OBJC )
|
||||
if(NOT MSVC)
|
||||
list(APPEND STRICT_OPTIONS_CPP "-Wall" "-Wuninitialized" "-Wno-error=deprecated-declarations")
|
||||
list(APPEND STRICT_OPTIONS_C "-Wdeclaration-after-statement")
|
||||
list(APPEND STRICT_OPTIONS_C "-Wdeclaration-after-statement" "-Wstrict-prototypes" "-Wno-error=strict-prototypes")
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
list(APPEND STRICT_OPTIONS_CPP "-Qunused-arguments" "-Wno-array-bounds")
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -768,7 +768,7 @@ AC_ARG_ENABLE(strict,
|
|||
)
|
||||
|
||||
STRICT_OPTIONS="-Wall -Wuninitialized"
|
||||
STRICT_OPTIONS_CC="-Wdeclaration-after-statement "
|
||||
STRICT_OPTIONS_CC="-Wdeclaration-after-statement -Wstrict-prototypes"
|
||||
STRICT_OPTIONS_CXX=""
|
||||
|
||||
#for clang
|
||||
|
|
@ -791,7 +791,7 @@ case "$target_os" in
|
|||
;;
|
||||
esac
|
||||
if test "$strictness" = "yes" ; then
|
||||
STRICT_OPTIONS="$STRICT_OPTIONS -Werror -Wno-error=deprecated-declarations"
|
||||
STRICT_OPTIONS="$STRICT_OPTIONS -Werror -Wno-error=deprecated-declarations -Wno-error=strict-prototypes"
|
||||
CFLAGS="$CFLAGS -fno-strict-aliasing"
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 095dcbe53abb01be1c3e4d57c6b46f89ea9ad4b1
|
||||
Subproject commit ff7a2ce9f467f468cd309141d964658968d69d14
|
||||
2
oRTP
2
oRTP
|
|
@ -1 +1 @@
|
|||
Subproject commit 297f16daa3b491c871798cef1bf259d1fa5d0bbd
|
||||
Subproject commit 0980546087e9ebcd89b86b72843b71b5948e71b3
|
||||
Loading…
Add table
Reference in a new issue