diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-01 01:51:36 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-01 01:51:36 +0000 |
commit | 4bb31899e5fe8e25b2e79b468de87007933c4eb9 (patch) | |
tree | 70b57727de3179b0546d0acd18cdac07b737cb36 /Makefile.flags | |
parent | 1e3b06868932b81220039bdf148bf25d7f1603fd (diff) | |
download | busybox-w32-4bb31899e5fe8e25b2e79b468de87007933c4eb9.tar.gz busybox-w32-4bb31899e5fe8e25b2e79b468de87007933c4eb9.tar.bz2 busybox-w32-4bb31899e5fe8e25b2e79b468de87007933c4eb9.zip |
add -Wwrite-strings to Makefile
Diffstat (limited to 'Makefile.flags')
-rw-r--r-- | Makefile.flags | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Makefile.flags b/Makefile.flags index 9de52d89a..e4ca7c6c5 100644 --- a/Makefile.flags +++ b/Makefile.flags | |||
@@ -16,10 +16,7 @@ CPPFLAGS += \ | |||
16 | -D"BB_VER=KBUILD_STR($(BB_VER))" -DBB_BT=AUTOCONF_TIMESTAMP | 16 | -D"BB_VER=KBUILD_STR($(BB_VER))" -DBB_BT=AUTOCONF_TIMESTAMP |
17 | 17 | ||
18 | # flag checks are grouped together to speed the checks up a bit.. | 18 | # flag checks are grouped together to speed the checks up a bit.. |
19 | CFLAGS += $(call cc-option,-Wall -Wshadow,) | 19 | CFLAGS += $(call cc-option,-Wall -Wshadow -Wwrite-strings,) |
20 | ifeq ($(CONFIG_WERROR),y) | ||
21 | CFLAGS += $(call cc-option,-Werror,) | ||
22 | endif | ||
23 | CFLAGS += $(call cc-option,-Wundef -Wstrict-prototypes,) | 20 | CFLAGS += $(call cc-option,-Wundef -Wstrict-prototypes,) |
24 | # If you want to add "-Wmissing-prototypes -Wmissing-declarations" above | 21 | # If you want to add "-Wmissing-prototypes -Wmissing-declarations" above |
25 | # (or anything else for that matter) make sure that it is still possible | 22 | # (or anything else for that matter) make sure that it is still possible |
@@ -28,6 +25,9 @@ CFLAGS += $(call cc-option,-Wundef -Wstrict-prototypes,) | |||
28 | # But still, warning-free compile is a must, or else we will drown | 25 | # But still, warning-free compile is a must, or else we will drown |
29 | # in warnings pretty soon. | 26 | # in warnings pretty soon. |
30 | 27 | ||
28 | ifeq ($(CONFIG_WERROR),y) | ||
29 | CFLAGS += $(call cc-option,-Werror,) | ||
30 | endif | ||
31 | # gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action() | 31 | # gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action() |
32 | CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition) | 32 | CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition) |
33 | 33 | ||