From 00f85b4aa3a51486c7e1558653705e3ffec80d5a Mon Sep 17 00:00:00 2001 From: aldot Date: Mon, 22 Jan 2007 17:50:21 +0000 Subject: - 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 --- Makefile.flags | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile.flags b/Makefile.flags index 384b0f8d6..669e30cfc 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 -- cgit v1.2.3-55-g6feb