diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2008-12-12 22:43:21 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2008-12-12 22:43:21 +0200 |
commit | a94bf00d0af9b423851905b031be5a645a657820 (patch) | |
tree | 6d1d71338dbf2c15ea7548b78c3e1ec93f8bfa68 | |
parent | Remove obsolete comment. (diff) | |
download | xz-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.
Diffstat (limited to '')
-rw-r--r-- | configure.ac | 8 |
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" |