From 8bcecbd302912f802026b00fbd15abc93c81860c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 17 Nov 2009 21:10:41 +0100 Subject: [PATCH] Build the C code with additional GCC warnings. * configure.ac (POTENTIAL_GCC_CFLAGS): Add `-Wdeclaration-after-statement -Wundef -Wswitch-enum'. --- configure.ac | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.20.1