From 19c000e81637aed5dbc3aef6b40d01f1c0bea9ad Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Tue, 14 Nov 2006 23:40:19 -0500 Subject: [PATCH] Update WFLAGS to suppress spurious warning messages Signed-off-by: "Theodore Ts'o" --- ChangeLog | 7 +++++++ MCONFIG.in | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) 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 -- 1.8.3.1