]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Don't use -Wdeclaration-after-statement. We long since abandoned any
authorJulian Seward <jseward@acm.org>
Fri, 1 Jan 2010 18:30:59 +0000 (18:30 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 1 Jan 2010 18:30:59 +0000 (18:30 +0000)
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

index 11fb3004c140deb38229caf3426a31f42a1054fc..44353a74e841c44c55f7eff37307255ae367b6d9 100644 (file)
@@ -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])