diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2005-07-20 21:58:23 +0000 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2005-07-20 21:58:23 +0000 |
commit | e81d4ac8c8c842860149c91a8e7abafe7301f46e (patch) | |
tree | 055021b116c5e16f80ec0ce4aa2965457f1d56fe /acinclude.m4 | |
parent | 492290499105496458c4f76abdaef115adb0ec4c (diff) | |
download | curl-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.m4 | 4 |
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 |