svn commit: trunk/busybox

vda at busybox.net vda at busybox.net
Thu Feb 1 01:51:37 UTC 2007


Author: vda
Date: 2007-01-31 17:51:36 -0800 (Wed, 31 Jan 2007)
New Revision: 17693

Log:
add -Wwrite-strings to Makefile


Modified:
   trunk/busybox/Makefile.flags


Changeset:
Modified: trunk/busybox/Makefile.flags
===================================================================
--- trunk/busybox/Makefile.flags	2007-02-01 01:43:54 UTC (rev 17692)
+++ trunk/busybox/Makefile.flags	2007-02-01 01:51:36 UTC (rev 17693)
@@ -16,10 +16,7 @@
 	-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,)
-ifeq ($(CONFIG_WERROR),y)
-CFLAGS += $(call cc-option,-Werror,)
-endif
+CFLAGS += $(call cc-option,-Wall -Wshadow -Wwrite-strings,)
 CFLAGS += $(call cc-option,-Wundef -Wstrict-prototypes,)
 # If you want to add "-Wmissing-prototypes -Wmissing-declarations" above
 # (or anything else for that matter) make sure that it is still possible
@@ -28,6 +25,9 @@
 # But still, warning-free compile is a must, or else we will drown
 # in warnings pretty soon.
 
+ifeq ($(CONFIG_WERROR),y)
+CFLAGS += $(call cc-option,-Werror,)
+endif
 # gcc 3.x emits bogus "old style proto" warning on find.c:alloc_action()
 CFLAGS += $(call cc-ifversion, -ge, 0400, -Wold-style-definition)
 



More information about the busybox-cvs mailing list