summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-11-17 21:10:41 +0100
committerLudovic Courtès <ludo@gnu.org>2009-11-17 23:42:28 +0100
commit8bcecbd302912f802026b00fbd15abc93c81860c (patch)
tree7897beda5e0b32354df16f2de00e407fd5243b68
parent56a3dcd4311d26ef2e9d14ef01021947562c5f17 (diff)
downloadguile-8bcecbd302912f802026b00fbd15abc93c81860c.tar.gz
Build the C code with additional GCC warnings.
* configure.ac (POTENTIAL_GCC_CFLAGS): Add `-Wdeclaration-after-statement -Wundef -Wswitch-enum'.
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 7d7cf7d91..66ac35cd0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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