summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-28 23:05:17 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-28 23:05:17 +0000
commitd50a7288ddcf402a963d4b4ca847840e799e941d (patch)
tree8429aa802122eb7c04e2170d99fa23a40f5e0205 /Rules.mak
parent127716a5ee0e8984663b58833d36788b9aa15466 (diff)
Bernhard Fischer writes: add undef/nonnull warnings to EXTRA_WARNINGS
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak1
1 files changed, 1 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index 658850e7b..294690867 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -332,6 +332,7 @@ XWARNINGS=$(subst ",, $(strip $(WARNINGS))) -Wstrict-prototypes -fno-strict-alia
ifeq ($(EXTRA_WARNINGS),y)
XWARNINGS+=-Wnested-externs -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wformat=2
XWARNINGS+=-Wmissing-prototypes -Wmissing-declarations
+XWARNINGS+=-Wnonnull -Wundef
# works only w/ gcc-3.4 and up, can't be checked for gcc-3.x w/ check_gcc()
#XWARNINGS+=-Wdeclaration-after-statement
endif