summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2007-01-22 17:50:21 +0000
committerBernhard Reutner-Fischer2007-01-22 17:50:21 +0000
commitfdcd7c4237a99682724ffbf4e40ab50a40197c56 (patch)
tree7d813f7397f68eb213fe0499515d998c19a8ff29
parent835f575b61614b19e253711d746898d0a1935309 (diff)
downloadbusybox-fdcd7c4237a99682724ffbf4e40ab50a40197c56.zip
busybox-fdcd7c4237a99682724ffbf4e40ab50a40197c56.tar.gz
- add more strict prototype checking to catch wrong and broken code (like nested functions)
-rw-r--r--Makefile.flags8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 384b0f8..669e30c 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -16,10 +16,16 @@ CPPFLAGS += \
-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