Commit e0ccb8c2 authored by Ghislain MARY's avatar Ghislain MARY

Activate compilation warnings for non-strict prototypes in C.

parent 77510489
......@@ -190,7 +190,7 @@ if(NOT MSVC)
endif()
if(ENABLE_STRICT)
list(APPEND STRICT_OPTIONS_CPP "-Werror" "-Wno-error=unknown-pragmas" "-Wuninitialized" "-fno-strict-aliasing")
list(APPEND STRICT_OPTIONS_C "-Wdeclaration-after-statement")
list(APPEND STRICT_OPTIONS_C "-Wdeclaration-after-statement" "-Wstrict-prototypes" "-Wno-error=strict-prototypes")
endif()
endif()
if(STRICT_OPTIONS_CPP)
......
......@@ -102,7 +102,7 @@ AC_ARG_ENABLE(strict,
esac],[strict=true])
STRICT_OPTIONS="-Wall"
STRICT_OPTIONS_CC=""
STRICT_OPTIONS_CC="-Wdeclaration-after-statement -Wstrict-prototypes"
STRICT_OPTIONS_CXX=""
case "$CC" in
......@@ -128,8 +128,7 @@ case "$target_os" in
esac
if test "$strict" = "true"; then
STRICT_OPTIONS="$STRICT_OPTIONS -Werror -Wno-error=unknown-pragmas -Wuninitialized"
STRICT_OPTIONS_CC="$STRICT_OPTIONS_CC -Wdeclaration-after-statement"
STRICT_OPTIONS="$STRICT_OPTIONS -Werror -Wno-error=unknown-pragmas -Wuninitialized -Wno-error=strict-prototypes"
fi
dnl because of antlr3 we must accept a few warnings...
......
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