1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

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

View file

@ -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"