From 33e1a26452c2e02216a2f70f68d4990b3e6494ab Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Fri, 20 Nov 2015 14:02:56 +0100 Subject: [PATCH] Activate compilation warnings for non-strict prototypes in C. --- CMakeLists.txt | 2 +- configure.ac | 4 ++-- mediastreamer2 | 2 +- oRTP | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 57d0394db..f4f45d39b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/configure.ac b/configure.ac index d0dec1861..eb9f974cc 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/mediastreamer2 b/mediastreamer2 index 095dcbe53..ff7a2ce9f 160000 --- a/mediastreamer2 +++ b/mediastreamer2 @@ -1 +1 @@ -Subproject commit 095dcbe53abb01be1c3e4d57c6b46f89ea9ad4b1 +Subproject commit ff7a2ce9f467f468cd309141d964658968d69d14 diff --git a/oRTP b/oRTP index 297f16daa..098054608 160000 --- a/oRTP +++ b/oRTP @@ -1 +1 @@ -Subproject commit 297f16daa3b491c871798cef1bf259d1fa5d0bbd +Subproject commit 0980546087e9ebcd89b86b72843b71b5948e71b3