Fix warning flags.
authorMarko Kreen <markokr@gmail.com>
Sat, 24 Apr 2010 11:53:12 +0000 (14:53 +0300)
committerMarko Kreen <markokr@gmail.com>
Sat, 24 Apr 2010 11:53:12 +0000 (14:53 +0300)
-Wformat=2 should turn an more useful flags.
-Wstrict-overflow is too noisy.  And =1 is already turned on by -Wall.

m4/usual.m4

index 08cadccd421584f664c202cf2f1d1fa2298a62a0..4a1696faa6a99c1889bee91810f51d8e87a6a433 100644 (file)
@@ -75,7 +75,7 @@ if test x"$GCC" = xyes; then
   # 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 -Wundef -Wformat -Wnonnull -Wstrict-overflow"
+  flags="$flags -Wstrict-prototypes -Wundef -Wformat=2"
   for f in $flags; do
     CFLAGS="$good_CFLAGS $WFLAGS $f"
     AC_COMPILE_IFELSE([void foo(void){}], [WFLAGS="$WFLAGS $f"])