diff options
-rwxr-xr-x | configure | 2 | ||||
-rw-r--r-- | configure.ac | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -6264,6 +6264,8 @@ UNIVERSAL_ARCH_FLAGS= # 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 --git a/configure.ac b/configure.ac index 03f9072..647de88 100644 --- a/configure.ac +++ b/configure.ac @@ -1127,6 +1127,8 @@ AC_SUBST(UNIVERSAL_ARCH_FLAGS) # 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 |