changeset: 83796:a3559c8c614b user: Benjamin Peterson date: Thu May 16 15:33:00 2013 -0500 files: configure configure.ac description: make GCC complain about declarations not at the top of blocks diff -r dedc900f5030 -r a3559c8c614b configure --- a/configure Thu May 16 15:30:09 2013 -0500 +++ b/configure Thu May 16 15:33:00 2013 -0500 @@ -6264,6 +6264,8 @@ # tweak BASECFLAGS based on compiler and platform case $GCC in yes) + BASECFLAGS="$BASECFLAGS -Werror=declaration-after-statement" + # Python doesn't violate C99 aliasing rules, but older versions of # GCC produce warnings for legal Python code. Enable # -fno-strict-aliasing on versions of GCC that support but produce diff -r dedc900f5030 -r a3559c8c614b configure.ac --- a/configure.ac Thu May 16 15:30:09 2013 -0500 +++ b/configure.ac Thu May 16 15:33:00 2013 -0500 @@ -1127,6 +1127,8 @@ # tweak BASECFLAGS based on compiler and platform case $GCC in yes) + BASECFLAGS="$BASECFLAGS -Werror=declaration-after-statement" + # Python doesn't violate C99 aliasing rules, but older versions of # GCC produce warnings for legal Python code. Enable # -fno-strict-aliasing on versions of GCC that support but produce