]> granicus.if.org Git - pgbouncer/commitdiff
seems Wextra does not turn on all warnings
authorMarko Kreen <markokr@gmail.com>
Wed, 5 Dec 2007 20:22:20 +0000 (20:22 +0000)
committerMarko Kreen <markokr@gmail.com>
Wed, 5 Dec 2007 20:22:20 +0000 (20:22 +0000)
configure.ac

index 8776f1b6ae796e44417ab3fb870177f54c969dc5..103d7bcdd14f7fc10637e0514355b412b3ba0ba3 100644 (file)
@@ -37,8 +37,14 @@ if test x"$GCC" = xyes; then
   AC_MSG_CHECKING([for working warning switches])
   good_CFLAGS="$CFLAGS"
   warnings=""
-  for f in -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers
-  do
+  flags="-Wall -Wextra"
+  # turn off noise from Wextra
+  flags="$flags -Wno-unused-parameter -Wno-missing-field-initializers"
+  # Wextra does not turn those on?
+  flags="$flags -Wmissing-prototypes -Wpointer-arith -Wendif-labels"
+  flags="$flags -Wdeclaration-after-statement -Wold-style-definition"
+  flags="$flags -Wstrict-prototypes"
+  for f in $flags; do
     CFLAGS="$good_CFLAGS $warnings $f"
     AC_COMPILE_IFELSE([void foo(void){}], [warnings="$warnings $f"])
   done