From be8716b2c82169ffe2d210444115a729e627b550 Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Fri, 24 Jan 2014 17:45:55 +0100 Subject: cflags: add -Wdeclaration-after-statement This allows people working on the code to spot the most common error that breaks the MSVC build Signed-off-by: Steve Markgraf --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index ca4bc6f..b60ca81 100644 --- a/configure.ac +++ b/configure.ac @@ -62,7 +62,7 @@ AC_SUBST(SYMBOL_VISIBILITY) AC_MSG_CHECKING(whether compiler understands -Wall) old_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter -Wno-unused -Wsign-compare" +CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-parameter -Wno-unused -Wsign-compare -Wdeclaration-after-statement" AC_TRY_COMPILE([],[], AC_MSG_RESULT(yes), AC_MSG_RESULT(no) -- cgit v1.2.3