From a94bf00d0af9b423851905b031be5a645a657820 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Fri, 12 Dec 2008 22:43:21 +0200 Subject: [PATCH] Some adjustments to GCC warning flags. The important change is the removal of -pedantic. It messes up -Werror (which I really want to keep so that I don't miss any warnings) with printf format strings that are in POSIX but not in C99. --- configure.ac | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 6e96a011..02ceecfb 100644 --- a/configure.ac +++ b/configure.ac @@ -648,17 +648,19 @@ if test "x$GCC" = xyes ; then -Wold-style-definition \ -Wstrict-prototypes \ -Waggregate-return \ + -Wlogical-op \ -Wwrite-strings \ -Wbad-function-cast \ -Wpointer-arith \ -Wshadow \ + -Wundef \ -Wfloat-equal \ - -Wstrict-aliasing=2 \ + -Wstrict-aliasing \ + -Wmissing-include-dirs \ -Winit-self \ -Wformat=2 \ -Wextra \ - -Wall \ - -pedantic + -Wall do AC_MSG_CHECKING([if $CC accepts $NEW_FLAG]) OLD_CFLAGS="$CFLAGS"