* configure.in (error-on-warning): make this the default. I'm

tired of having to fix missing #includes, mismatched types,
etc. after an update so I can get back to work, but if anyone has
a real problem with this, I'd be happy to reconsider.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6271 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Rob Browning 2001-12-07 18:11:27 +00:00
parent 363cb21f46
commit 91d891a7f1

View File

@ -272,13 +272,16 @@ AC_SUBST(GNC_LIBEXECDIR)
# We should always see these errors... # We should always see these errors...
CFLAGS="${CFLAGS} -Wall" CFLAGS="${CFLAGS} -Wall"
# Enable error-on-warning by default -- I'm tired of fixing other
# people's missing #includes, etc.
AC_ARG_ENABLE(error-on-warning, AC_ARG_ENABLE(error-on-warning,
[ --enable-error-on-warning treat compile warnings as errors], [ --enable-error-on-warning treat compile warnings as errors],
[case "${enableval}" in [case "${enableval}" in
yes) CFLAGS="${CFLAGS} -Werror"; enable_compile_warnings=no ;; yes) CFLAGS="${CFLAGS} -Werror -Wno-unused"; enable_compile_warnings=no ;;
no) ;; no) ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-error-on-warning) ;; *) AC_MSG_ERROR(bad value ${enableval} for --enable-error-on-warning) ;;
esac]) esac]
[ CFLAGS="${CFLAGS} -Werror -Wno-unused"; enable_compile_warnings=no ])
# This has to come after AC_PROG_CC # This has to come after AC_PROG_CC
if test ${GCC}x = yesx if test ${GCC}x = yesx