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.
This commit is contained in:
Neil Roberts 2010-10-25 13:03:39 +01:00
parent 164af55a6e
commit c3f47fa7d0

View File

@ -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"])
]
)