Mercurial > hg > octave-lojdl
changeset 9090:298b57a4fec2
configure.in: tweak warning flags
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 05 Apr 2009 13:17:35 -0400 |
parents | 0b08eaf77dd6 |
children | 45c832e9976d |
files | ChangeLog configure.in |
diffstat | 2 files changed, 13 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2009-04-05 John W. Eaton <jwe@octave.org> + + * configure.in: Add -Wformat to extra warning flags. Add + -Wconversion to strict warning flags. + 2009-04-02 John W. Eaton <jwe@octave.org> * Makeconf.in (do-script-install): Use $(INSTALL_DATA) instead of
--- a/configure.in +++ b/configure.in @@ -1952,6 +1952,9 @@ OCTAVE_CC_FLAG(-Wshadow, [ WARN_CFLAGS="$WARN_CFLAGS -Wshadow"; AC_MSG_RESULT([adding -Wshadow to WARN_CFLAGS])]) + OCTAVE_CC_FLAG(-Wformat, [ + WARN_CFLAGS="$WARN_CFLAGS -Wformat"; + AC_MSG_RESULT([adding -Wformat to WARN_CFLAGS])]) OCTAVE_CXX_FLAG(-Wall, [ WARN_CXXFLAGS="$WARN_CXXFLAGS -Wall"; @@ -1965,12 +1968,15 @@ OCTAVE_CXX_FLAG(-Wold-style-cast, [ WARN_CXXFLAGS="$WARN_CXXFLAGS -Wold-style-cast"; AC_MSG_RESULT([adding -Wold-style-cast to WARN_CXXFLAGS])]) + OCTAVE_CXX_FLAG(-Wformat, [ + WARN_CXXFLAGS="$WARN_CXXFLAGS -Wformat"; + AC_MSG_RESULT([adding -Wformat to WARN_CXXFLAGS])]) fi -GCC_STRICT_FLAGS="-Wcast-align -Wcast-qual -Wmissing-prototypes \ +GCC_STRICT_FLAGS="-Wcast-align -Wcast-qual -Wconversion -Wmissing-prototypes \ -Wpointer-arith -Wstrict-prototypes -Wwrite-strings" -GXX_STRICT_FLAGS="-Wcast-align -Wcast-qual -Wpointer-arith \ +GXX_STRICT_FLAGS="-Wcast-align -Wcast-qual -Wconversion -Wpointer-arith \ -Wwrite-strings -Weffc++" try_strict_warning_flags=false