From 0d79d8a324f161dae2a19b3b497506a3e009b12d Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Fri, 1 Jan 2010 18:30:59 +0000 Subject: [PATCH] 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 --- configure.in | 27 --------------------------- 1 file changed, 27 deletions(-) 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]) -- 2.47.2