From: Bernhard Reutner-Fischer Date: Thu, 21 Jun 2007 10:28:11 +0000 (-0000) Subject: since we removed the deprecated matches() now and thus not alot of warnings are curre... X-Git-Tag: 1_7_0~191 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7e61485d6203080f17702f28090ebb85dc905ce;p=platform%2Fupstream%2Fbusybox.git since we removed the deprecated matches() now and thus not alot of warnings are currently seen, let's strive to fixup these: - warn a little bit about unused results --- diff --git a/Makefile.flags b/Makefile.flags index c9b713b..e73cf9d 100644 --- a/Makefile.flags +++ b/Makefile.flags @@ -28,6 +28,9 @@ CFLAGS += $(call cc-option,-Wundef -Wstrict-prototypes,) ifeq ($(CONFIG_WERROR),y) CFLAGS += $(call cc-option,-Werror,) +else +# for development, warn a little bit about unused results.. +CPPFLAGS += -D_FORTIFY_SOURCE=2 endif # gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action() CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition)