From c3f47fa7d03ec3e7a5f963ced0457f27c3ec41ee Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Mon, 25 Oct 2010 13:03:39 +0100 Subject: [PATCH] Add -Wdeclaration-after-statement and -Wvla to maintainer CFLAGS These warnings pick up C99 extensions that are commonly accidentally used and which cause problems when compiling with MSVC. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 06d72ad71..38809ebea 100644 --- a/configure.ac +++ b/configure.ac @@ -995,7 +995,8 @@ AS_IF([test "x$enable_maintainer_flags" = "xyes" && test "x$GCC" = "xyes"], AS_COMPILER_FLAGS([MAINTAINER_CFLAGS], ["-Wall -Wshadow -Wcast-align -Wuninitialized -Wno-strict-aliasing -Wempty-body -Wformat - -Wformat-security -Winit-self"]) + -Wformat-security -Winit-self + -Wdeclaration-after-statement -Wvla"]) ] )