From 5599502a550a7f892d4b73dceb2105a6916f83e6 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 18 May 2008 22:28:26 +0000 Subject: more -Wall warning fixes. -Wall is enabled now. --- Makefile.flags | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile.flags') diff --git a/Makefile.flags b/Makefile.flags index 3889df09b..9525889c6 100644 --- a/Makefile.flags +++ b/Makefile.flags @@ -17,11 +17,15 @@ CPPFLAGS += \ $(if $(CONFIG_LFS),-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64) \ -D"BB_VER=KBUILD_STR($(BB_VER))" -DBB_BT=AUTOCONF_TIMESTAMP -# flag checks are grouped together to speed the checks up a bit.. -CFLAGS += $(call cc-option,-Wall -Wshadow -Wwrite-strings,) -CFLAGS += $(call cc-option,-Wundef -Wstrict-prototypes,) +CFLAGS += $(call cc-option,-Wall,) +CFLAGS += $(call cc-option,-Wshadow,) +CFLAGS += $(call cc-option,-Wwrite-strings,) +CFLAGS += $(call cc-option,-Wundef,) +CFLAGS += $(call cc-option,-Wstrict-prototypes,) CFLAGS += $(call cc-option,-Wunused -Wunused-parameter,) CFLAGS += $(call cc-option,-Wmissing-prototypes -Wmissing-declarations,) +# warn about C99 declaration after statement +CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) # If you want to add more -Wsomething above, make sure that it is # still possible to build bbox without warnings. -- cgit v1.2.3