From: Julian Seward Date: Fri, 1 Jan 2010 18:30:59 +0000 (+0000) Subject: Don't use -Wdeclaration-after-statement. We long since abandoned any X-Git-Tag: svn/VALGRIND_3_6_0~439 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d79d8a324f161dae2a19b3b497506a3e009b12d;p=thirdparty%2Fvalgrind.git Don't use -Wdeclaration-after-statement. We long since abandoned any pretense of being buildable with gcc prior to 3.0, hence there's no point in having this flag. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10984 --- diff --git a/configure.in b/configure.in index 11fb3004c1..44353a74e8 100644 --- a/configure.in +++ b/configure.in @@ -1217,33 +1217,6 @@ if test x$no_pointer_sign = xyes; then fi -# does this compiler support -Wdeclaration-after-statement ? -AC_MSG_CHECKING([if gcc accepts -Wdeclaration-after-statement]) - -safe_CFLAGS=$CFLAGS -CFLAGS="-Wdeclaration-after-statement" - -AC_TRY_COMPILE(, [ - return 0; -], -[ -declaration_after_statement=yes -FLAG_WDECL_AFTER_STMT="-Wdeclaration-after-statement" -AC_MSG_RESULT([yes]) -], [ -declaration_after_statement=no -FLAG_WDECL_AFTER_STMT="" -AC_MSG_RESULT([no]) -]) -CFLAGS=$safe_CFLAGS - -AC_SUBST(FLAG_WDECL_AFTER_STMT) - -if test x$declaration_after_statement = xyes; then - CFLAGS="$CFLAGS -Wdeclaration-after-statement" -fi - - # does this compiler support -Wno-empty-body ? AC_MSG_CHECKING([if gcc accepts -Wno-empty-body])