summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2011-04-14 13:16:55 -0500
committerDan Williams <dcbw@redhat.com>2011-04-14 13:19:12 -0500
commitdf511f74f721d199b0b3124879eecf89e67ee9df (patch)
tree13f07f6cb91fd287a347c7bd01cea1612335d932 /m4
parent0acd1d322bb4bc1f12149a2e1fe4a27738fb9647 (diff)
downloadNetworkManager-df511f74f721d199b0b3124879eecf89e67ee9df.tar.gz
build: use -Wundef and fix up cases where stuff wasn't defined (bgo #647157)
Diffstat (limited to 'm4')
-rw-r--r--m4/compiler_warnings.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/compiler_warnings.m4 b/m4/compiler_warnings.m4
index be69af2785..55ecfe1bc4 100644
--- a/m4/compiler_warnings.m4
+++ b/m4/compiler_warnings.m4
@@ -10,7 +10,8 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
for option in -Wshadow -Wmissing-declarations -Wmissing-prototypes \
-Wdeclaration-after-statement -Wstrict-prototypes \
-Wfloat-equal -Wno-unused-parameter -Wno-sign-compare \
- -fno-strict-aliasing -Wno-unused-but-set-variable; do
+ -fno-strict-aliasing -Wno-unused-but-set-variable \
+ -Wundef; do
SAVE_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $option"
AC_MSG_CHECKING([whether gcc understands $option])