-Wformat=2 should turn an more useful flags.
-Wstrict-overflow is too noisy. And =1 is already turned on by -Wall.
# 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"])