Commit 33e1a264 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Activate compilation warnings for non-strict prototypes in C.

parent 1249c339
......@@ -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
......
mediastreamer2 @ ff7a2ce9
Subproject commit 095dcbe53abb01be1c3e4d57c6b46f89ea9ad4b1
Subproject commit ff7a2ce9f467f468cd309141d964658968d69d14
oRTP @ 09805460
Subproject commit 297f16daa3b491c871798cef1bf259d1fa5d0bbd
Subproject commit 0980546087e9ebcd89b86b72843b71b5948e71b3
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment