aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-22 17:50:21 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-22 17:50:21 +0000
commit00f85b4aa3a51486c7e1558653705e3ffec80d5a (patch)
tree7d813f7397f68eb213fe0499515d998c19a8ff29
parent25807f170879cb04cec6d335f25e2d39c378c9d6 (diff)
downloadbusybox-w32-00f85b4aa3a51486c7e1558653705e3ffec80d5a.tar.gz
busybox-w32-00f85b4aa3a51486c7e1558653705e3ffec80d5a.tar.bz2
busybox-w32-00f85b4aa3a51486c7e1558653705e3ffec80d5a.zip
- add more strict prototype checking to catch wrong and broken code (like nested functions)
git-svn-id: svn://busybox.net/trunk/busybox@17468 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--Makefile.flags8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 384b0f8d6..669e30cfc 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -16,10 +16,16 @@ 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
18CFLAGS += \ 18CFLAGS += \
19 -Wall -Wstrict-prototypes -Wshadow -Werror -Wundef \ 19 -Wall -Wshadow -Wno-error -Wundef \
20 -Wold-style-definition \
21 -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
20 -funsigned-char -fno-builtin-strlen -finline-limit=0 -static-libgcc \ 22 -funsigned-char -fno-builtin-strlen -finline-limit=0 -static-libgcc \
21 -Os -falign-functions=1 -falign-jumps=1 -falign-loops=1 \ 23 -Os -falign-functions=1 -falign-jumps=1 -falign-loops=1 \
22 -fomit-frame-pointer -ffunction-sections -fdata-sections 24 -fomit-frame-pointer -ffunction-sections -fdata-sections
25# FIXME: These warnings are at least partially to be concerned about and should
26# be fixed..
27#CFLAGS+=-Wconversion
28
23 29
24ifeq ($(CONFIG_DEBUG),y) 30ifeq ($(CONFIG_DEBUG),y)
25CFLAGS += -g 31CFLAGS += -g