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
95dd343e
Commit
95dd343e
authored
May 09, 2014
by
Simon Morlat
Browse files
add --disable-strict option
parent
6688941c
Changes
1
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
95dd343e
...
...
@@ -89,16 +89,30 @@ else
CFLAGS="$CFLAGS -g"
fi
STRICT_OPTIONS=" -Wall -Werror -Wno-error=unknown-pragmas"
AC_ARG_ENABLE(strict,
[ --disable-strict Turn off strict mode compilation, no warnings allowed (default=yes)],
[case "${enableval}" in
yes) strict=true ;;
no) strict=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-strict) ;;
esac],[strict=true])
case "$CC" in
*clang*)
STRICT_OPTIONS="$STRICT_OPTIONS -Wno-error=unknown-warning-option"
;;
gcc*)
STRICT_OPTIONS="$STRICT_OPTIONS -Wno-error=pragmas"
;;
esac
STRICT_OPTIONS="-Wall"
if test "$strict" = "true"; then
STRICT_OPTIONS="$STRICT_OPTIONS -Werror -Wno-error=unknown-pragmas"
case "$CC" in
*clang*)
STRICT_OPTIONS="$STRICT_OPTIONS -Wno-error=unknown-warning-option"
;;
gcc*)
STRICT_OPTIONS="$STRICT_OPTIONS -Wno-error=pragmas"
;;
esac
fi
dnl because of antlr3 we must accept a few warnings...
dnl more portable for the moment
...
...
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