aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.flags3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.flags b/Makefile.flags
index c9b713b02..e73cf9d31 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -28,6 +28,9 @@ CFLAGS += $(call cc-option,-Wundef -Wstrict-prototypes,)
28 28
29ifeq ($(CONFIG_WERROR),y) 29ifeq ($(CONFIG_WERROR),y)
30CFLAGS += $(call cc-option,-Werror,) 30CFLAGS += $(call cc-option,-Werror,)
31else
32# for development, warn a little bit about unused results..
33CPPFLAGS += -D_FORTIFY_SOURCE=2
31endif 34endif
32# gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action() 35# gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action()
33CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition) 36CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition)