Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
e0ccb8c2
Commit
e0ccb8c2
authored
Nov 20, 2015
by
Ghislain MARY
Browse files
Activate compilation warnings for non-strict prototypes in C.
parent
77510489
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
e0ccb8c2
...
...
@@ -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
)
...
...
configure.ac
View file @
e0ccb8c2
...
...
@@ -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...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment