--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
16
configure.in
16
configure.in
|
@ -1125,9 +1125,21 @@ if test "x$GCC" != xyes; then
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(Werror,
|
||||||
|
[ --enable-Werror treat warnings as errors]
|
||||||
|
)
|
||||||
dnl We want warnings, lots of warnings...
|
dnl We want warnings, lots of warnings...
|
||||||
if test "x$GCC" = xyes; then
|
if test "x$GCC" = "xyes"; then
|
||||||
CFLAGS="$CFLAGS -Wall -Werror"
|
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"
|
# CFLAGS="$CFLAGS -Wall -pedantic"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue