mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* 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:
parent
363cb21f46
commit
91d891a7f1
@ -272,13 +272,16 @@ AC_SUBST(GNC_LIBEXECDIR)
|
||||
# We should always see these errors...
|
||||
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,
|
||||
[ --enable-error-on-warning treat compile warnings as errors],
|
||||
[case "${enableval}" in
|
||||
yes) CFLAGS="${CFLAGS} -Werror"; enable_compile_warnings=no ;;
|
||||
yes) CFLAGS="${CFLAGS} -Werror -Wno-unused"; enable_compile_warnings=no ;;
|
||||
no) ;;
|
||||
*) 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
|
||||
if test ${GCC}x = yesx
|
||||
|
Loading…
Reference in New Issue
Block a user