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:
parent
8582d392ba
commit
a94bf00d0a
1 changed files with 5 additions and 3 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue