aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2008-12-12 22:43:21 +0200
committerLasse Collin <lasse.collin@tukaani.org>2008-12-12 22:43:21 +0200
commita94bf00d0af9b423851905b031be5a645a657820 (patch)
tree6d1d71338dbf2c15ea7548b78c3e1ec93f8bfa68
parentRemove obsolete comment. (diff)
downloadxz-a94bf00d0af9b423851905b031be5a645a657820.tar.xz
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.
-rw-r--r--configure.ac8
1 files 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"