From e81d4ac8c8c842860149c91a8e7abafe7301f46e Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 20 Jul 2005 21:58:23 +0000 Subject: [PATCH] Add -Wdeclaration-after-statement to gcc to detect accidental C99-style variable declarations. --- acinclude.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acinclude.m4 b/acinclude.m4 index 9c801ab..7125d61 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 -- 2.7.4