mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
--enable-Werror flag to cvs. does the obvious. defaults to enabled if
binding from CVS, disabled otherwise.
This commit is contained in:
parent
c3e3f8182d
commit
aea1eda7ee
1 changed files with 14 additions and 2 deletions
14
configure.in
14
configure.in
|
@ -1125,9 +1125,21 @@ if test "x$GCC" != xyes; then
|
|||
esac
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE(Werror,
|
||||
[ --enable-Werror treat warnings as errors]
|
||||
)
|
||||
dnl We want warnings, lots of warnings...
|
||||
if test "x$GCC" = xyes; then
|
||||
if test "x$GCC" = "xyes"; then
|
||||
if test -d $srcdir/CVS; then
|
||||
tst="!= xno"
|
||||
else
|
||||
tst="= xyes"
|
||||
fi
|
||||
if test "x$enable_Werror" $tst; then
|
||||
CFLAGS="$CFLAGS -Wall -Werror"
|
||||
else
|
||||
CFLAGS="$CFLAGS -Wall"
|
||||
fi
|
||||
# CFLAGS="$CFLAGS -Wall -pedantic"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue