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.
This commit is contained in:
Lasse Collin 2008-12-12 22:43:21 +02:00
parent 8582d392ba
commit a94bf00d0a
1 changed files with 5 additions and 3 deletions

View File

@ -648,17 +648,19 @@ if test "x$GCC" = xyes ; then
-Wold-style-definition \ -Wold-style-definition \
-Wstrict-prototypes \ -Wstrict-prototypes \
-Waggregate-return \ -Waggregate-return \
-Wlogical-op \
-Wwrite-strings \ -Wwrite-strings \
-Wbad-function-cast \ -Wbad-function-cast \
-Wpointer-arith \ -Wpointer-arith \
-Wshadow \ -Wshadow \
-Wundef \
-Wfloat-equal \ -Wfloat-equal \
-Wstrict-aliasing=2 \ -Wstrict-aliasing \
-Wmissing-include-dirs \
-Winit-self \ -Winit-self \
-Wformat=2 \ -Wformat=2 \
-Wextra \ -Wextra \
-Wall \ -Wall
-pedantic
do do
AC_MSG_CHECKING([if $CC accepts $NEW_FLAG]) AC_MSG_CHECKING([if $CC accepts $NEW_FLAG])
OLD_CFLAGS="$CFLAGS" OLD_CFLAGS="$CFLAGS"