From 8393ee3e615a856ee602380ee3bdf35696f98682 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Fri, 12 Jul 2013 18:44:21 +1000 Subject: [PATCH] configure.ac : Include a couple more -W flags. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 0f5365b2..bef0c184 100644 --- a/configure.ac +++ b/configure.ac @@ -536,9 +536,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 -Wundef -Wmissing-declarations " + CFLAGS="$CFLAGS -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast -Wwrite-strings -Wundef -Wmissing-declarations -Wuninitialized -Winit-self -Wunreachable-code" # -Winline -Wconversion" - CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-promo -Wundef -Wmissing-declarations " + CXXFLAGS="$CXXFLAGS -Wcast-align -Wcast-qual -Wshadow -Wwrite-strings -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wreorder -Wsign-promo -Wundef -Wmissing-declarations -Wuninitialized -Winit-self -Wunreachable-code" if test "x$enable_gcc_opt" = "xno" ; then temp_CFLAGS=`echo $CFLAGS | $SED "s/O2/O0/"`