commit | 43b2ab96bc63f037bd7e1504241c2feaef684fc6 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu May 16 15:33:00 2013 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Thu May 16 15:33:00 2013 -0500 |
tree | e721ad430f5d82563728c9d63cb8e9e808d81da6 | |
parent | aa96588399da6b77767e5a6df675a035e3f72da6 [diff] [blame] |
make GCC complain about declarations not at the top of blocks
diff --git a/configure b/configure index 725250b..37c51cc 100755 --- a/configure +++ b/configure
@@ -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