From: Dan Fandrich Date: Wed, 20 Jul 2005 21:58:23 +0000 (+0000) Subject: Add -Wdeclaration-after-statement to gcc to detect accidental C99-style X-Git-Tag: c-ares-1_3_0~84 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e81d4ac8c8c842860149c91a8e7abafe7301f46e;p=curl Add -Wdeclaration-after-statement to gcc to detect accidental C99-style variable declarations. --- 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