svn commit: trunk/busybox

aldot at busybox.net aldot at busybox.net
Mon Jan 22 17:50:22 UTC 2007


Author: aldot
Date: 2007-01-22 09:50:21 -0800 (Mon, 22 Jan 2007)
New Revision: 17468

Log:
- add more strict prototype checking to catch wrong and broken code (like nested functions)


Modified:
   trunk/busybox/Makefile.flags


Changeset:
Modified: trunk/busybox/Makefile.flags
===================================================================
--- trunk/busybox/Makefile.flags	2007-01-22 17:48:08 UTC (rev 17467)
+++ trunk/busybox/Makefile.flags	2007-01-22 17:50:21 UTC (rev 17468)
@@ -16,11 +16,17 @@
 	-D"BB_VER=KBUILD_STR($(BB_VER))" -DBB_BT=AUTOCONF_TIMESTAMP
 
 CFLAGS += \
-	-Wall -Wstrict-prototypes -Wshadow -Werror -Wundef \
+	-Wall -Wshadow -Wno-error -Wundef \
+	-Wold-style-definition \
+	-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
 	-funsigned-char -fno-builtin-strlen -finline-limit=0 -static-libgcc \
 	-Os -falign-functions=1 -falign-jumps=1 -falign-loops=1 \
 	-fomit-frame-pointer -ffunction-sections -fdata-sections
+# FIXME: These warnings are at least partially to be concerned about and should
+# be fixed..
+#CFLAGS+=-Wconversion
 
+
 ifeq ($(CONFIG_DEBUG),y)
 CFLAGS += -g
 endif




More information about the busybox-cvs mailing list