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
|
@ -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 New Issue