summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2005-07-20 21:58:23 +0000
committerDan Fandrich <dan@coneharvesters.com>2005-07-20 21:58:23 +0000
commite81d4ac8c8c842860149c91a8e7abafe7301f46e (patch)
tree055021b116c5e16f80ec0ce4aa2965457f1d56fe /acinclude.m4
parent492290499105496458c4f76abdaef115adb0ec4c (diff)
downloadcurl-e81d4ac8c8c842860149c91a8e7abafe7301f46e.tar.gz
Add -Wdeclaration-after-statement to gcc to detect accidental C99-style
variable declarations.
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 9c801ab6e..7125d61bd 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -766,8 +766,8 @@ AC_DEFUN([CURL_CC_DEBUG_OPTS],
fi
if test "$gccnum" -ge "304"; then
- # try -Wunreachable-code on gcc 3.4
- WARN="$WARN -Wunreachable-code"
+ # try these on gcc 3.4
+ WARN="$WARN -Wunreachable-code -Wdeclaration-after-statement"
fi
for flag in $CPPFLAGS; do