usual.m4: turn on uninitialized variable warnings on clang
authorMarko Kreen <markokr@gmail.com>
Fri, 4 Mar 2011 08:19:25 +0000 (10:19 +0200)
committerMarko Kreen <markokr@gmail.com>
Fri, 4 Mar 2011 08:19:25 +0000 (10:19 +0200)
You need gcc-3.4 or clang 2.9 with -Wuninitialized-experimental
to get them..

m4/usual.m4

index 88bd40845417030d8c1822d12c14472f2bb7835a..4bfe7e0dc2359d4de3a2cbaa5b8ed302eb11b7a8 100644 (file)
@@ -76,6 +76,7 @@ if test x"$GCC" = xyes; then
   flags="$flags -Wmissing-prototypes -Wpointer-arith -Wendif-labels"
   flags="$flags -Wdeclaration-after-statement -Wold-style-definition"
   flags="$flags -Wstrict-prototypes -Wundef -Wformat=2"
+  flags="$flags -Wuninitialized -Wuninitialized-experimental"
   for f in $flags; do
     CFLAGS="$good_CFLAGS $WFLAGS $f"
     AC_COMPILE_IFELSE([void foo(void){}], [WFLAGS="$WFLAGS $f"])