summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-01-22 17:50:21 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-01-22 17:50:21 +0000
commitfdcd7c4237a99682724ffbf4e40ab50a40197c56 (patch)
tree7d813f7397f68eb213fe0499515d998c19a8ff29
parent835f575b61614b19e253711d746898d0a1935309 (diff)
downloadbusybox-w32-fdcd7c4237a99682724ffbf4e40ab50a40197c56.tar.gz
busybox-w32-fdcd7c4237a99682724ffbf4e40ab50a40197c56.tar.bz2
busybox-w32-fdcd7c4237a99682724ffbf4e40ab50a40197c56.zip
- 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 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