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 \
|
||||
-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"
|
||||
|
|
Loading…
Reference in New Issue