From: Theodore Ts'o Date: Wed, 15 Nov 2006 04:40:19 +0000 (-0500) Subject: Update WFLAGS to suppress spurious warning messages X-Git-Tag: E2FSPROGS-1_40-WIP-1114~2 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=19c000e81637aed5dbc3aef6b40d01f1c0bea9ad;p=tools%2Fe2fsprogs.git Update WFLAGS to suppress spurious warning messages Signed-off-by: "Theodore Ts'o" --- diff --git a/ChangeLog b/ChangeLog index 46e7dbb..f0f10ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-11-14 Theodore Tso + + * MCONFIG.in (WFLAGS): Add -fstrict-aliasing and + -Wno-variadic-macros. Also use -std=c99 and + -D_XOPEN_SOURCE=600 and -D_GNU_SOURCE to suppress + spurious warnings. + 2006-11-12 Theodore Tso * configure, configure.in (E2FSPROGS_PKGVER): Define diff --git a/MCONFIG.in b/MCONFIG.in index bd327d6..c3e7685 100644 --- a/MCONFIG.in +++ b/MCONFIG.in @@ -121,12 +121,13 @@ $(top_builddir)/util/subst: # Run make gcc-wall to do a build with warning messages. # # -WFLAGS= -ansi -D_POSIX_SOURCE -pedantic $(WFLAGS_EXTRA) \ +WFLAGS= -std=c99 -D_XOPEN_SOURCE=600 -D_GNU_SOURCE \ + -pedantic $(WFLAGS_EXTRA) \ -Wall -W -Wwrite-strings -Wpointer-arith \ - -Wcast-qual -Wcast-align \ + -Wcast-qual -Wcast-align -Wno-variadic-macros \ -Wstrict-prototypes -Wmissing-prototypes \ -Wformat-security -Wformat-nonliteral \ - -Wmissing-format-attribute \ + -Wmissing-format-attribute -O2 -Wstrict-aliasing \ -Wnested-externs -Winline -DNO_INLINE_FUNCS -Wshadow \ -UENABLE_NLS