configure.ac : Add -Wundef to CFLAGS.

This commit is contained in:
Erik de Castro Lopo 2011-06-13 22:15:06 +10:00
parent e71a2381f1
commit 1b4b05ae6a
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,9 @@
* src/sndfile.h.in
Fix -Wundef warning due to ENABLE_SNDFILE_WINDOWS_PROTOTYPES.
* configure.ac
Add -Wundef to CFLAGS.
2011-05-18 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* configure.ac

View File

@ -529,9 +529,9 @@ if test x$ac_cv_c_compiler_gnu = xyes ; then
MN_ADD_CFLAGS([-coverage])
fi
CFLAGS="$CFLAGS -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast -Wwrite-strings "
CFLAGS="$CFLAGS -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast -Wwrite-strings -Wundef "
# -Wundef -Wmissing-declarations -Winline -Wconversion"
CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-promo "
CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-promo -Wundef "
if test "x$enable_gcc_opt" = "xno" ; then
temp_CFLAGS=`echo $CFLAGS | $SED "s/O2/O0/"`