summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2018-03-01 18:56:42 +0000
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2018-03-01 18:56:42 +0000
commit961cd0a13c850d592f570d20c0243a63dda8f3a5 (patch)
tree835e98f5146ac8051a633d82f51faaa9162ba265
parentcef9840613e4f8fcf777df0ac10dfcdd7cefb8f5 (diff)
quieten some warnings when EXTRA_WARNINGS not set
-rw-r--r--Rules.mak4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rules.mak b/Rules.mak
index db683cf68..12c72297d 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -560,10 +560,10 @@ export ASNEEDED:=$(shell $(CC) -Wl,--help 2>/dev/null | grep -q -- --as-needed &
endif
# Add a bunch of extra pedantic annoyingly strict checks
-WARNING_FLAGS = -Wstrict-prototypes -Wstrict-aliasing
+WARNING_FLAGS = -Wstrict-prototypes -Wstrict-aliasing -Wno-nonnull-compare
ifeq ($(EXTRA_WARNINGS),y)
WARNING_FLAGS += \
- -Wno-nonnull-compare \
+ -Wnonnull-compare \
-Wnodeclaration-after-statement \
-Wformat=2 \
-Wmissing-noreturn \