Build the C code with additional GCC warnings.
authorLudovic Courtès <ludo@gnu.org>
Tue, 17 Nov 2009 20:10:41 +0000 (21:10 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 17 Nov 2009 22:42:28 +0000 (23:42 +0100)
* configure.ac (POTENTIAL_GCC_CFLAGS): Add
  `-Wdeclaration-after-statement -Wundef -Wswitch-enum'.

configure.ac

index 7d7cf7d..66ac35c 100644 (file)
@@ -1444,7 +1444,9 @@ case "$GCC" in
     ## less than exasperating.
     ## -Wpointer-arith was here too, but something changed in gcc/glibc
     ## and it became equally exasperating (gcc 2.95 and/or glibc 2.1.2).
-    POTENTIAL_GCC_CFLAGS="-Wall -Wmissing-prototypes"
+    POTENTIAL_GCC_CFLAGS="-Wall -Wmissing-prototypes \
+      -Wdeclaration-after-statement -Wundef \
+      -Wswitch-enum"
     # Do this here so we don't screw up any of the tests above that might
     # not be "warning free"
     if test "${GUILE_ERROR_ON_WARNING}" = yes