diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-18 22:28:26 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-18 22:28:26 +0000 |
commit | 5599502a550a7f892d4b73dceb2105a6916f83e6 (patch) | |
tree | 572ffa27892b1b24db86930044077dbb1565840f /Makefile.flags | |
parent | e125a683a77d14401644d15f38b7f578db723924 (diff) | |
download | busybox-w32-5599502a550a7f892d4b73dceb2105a6916f83e6.tar.gz busybox-w32-5599502a550a7f892d4b73dceb2105a6916f83e6.tar.bz2 busybox-w32-5599502a550a7f892d4b73dceb2105a6916f83e6.zip |
more -Wall warning fixes. -Wall is enabled now.
Diffstat (limited to 'Makefile.flags')
-rw-r--r-- | Makefile.flags | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Makefile.flags b/Makefile.flags index 3889df09b..9525889c6 100644 --- a/Makefile.flags +++ b/Makefile.flags | |||
@@ -17,11 +17,15 @@ CPPFLAGS += \ | |||
17 | $(if $(CONFIG_LFS),-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64) \ | 17 | $(if $(CONFIG_LFS),-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64) \ |
18 | -D"BB_VER=KBUILD_STR($(BB_VER))" -DBB_BT=AUTOCONF_TIMESTAMP | 18 | -D"BB_VER=KBUILD_STR($(BB_VER))" -DBB_BT=AUTOCONF_TIMESTAMP |
19 | 19 | ||
20 | # flag checks are grouped together to speed the checks up a bit.. | 20 | CFLAGS += $(call cc-option,-Wall,) |
21 | CFLAGS += $(call cc-option,-Wall -Wshadow -Wwrite-strings,) | 21 | CFLAGS += $(call cc-option,-Wshadow,) |
22 | CFLAGS += $(call cc-option,-Wundef -Wstrict-prototypes,) | 22 | CFLAGS += $(call cc-option,-Wwrite-strings,) |
23 | CFLAGS += $(call cc-option,-Wundef,) | ||
24 | CFLAGS += $(call cc-option,-Wstrict-prototypes,) | ||
23 | CFLAGS += $(call cc-option,-Wunused -Wunused-parameter,) | 25 | CFLAGS += $(call cc-option,-Wunused -Wunused-parameter,) |
24 | CFLAGS += $(call cc-option,-Wmissing-prototypes -Wmissing-declarations,) | 26 | CFLAGS += $(call cc-option,-Wmissing-prototypes -Wmissing-declarations,) |
27 | # warn about C99 declaration after statement | ||
28 | CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) | ||
25 | # If you want to add more -Wsomething above, make sure that it is | 29 | # If you want to add more -Wsomething above, make sure that it is |
26 | # still possible to build bbox without warnings. | 30 | # still possible to build bbox without warnings. |
27 | 31 | ||