- add more strict prototype checking to catch wrong and broken code (like nested...
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 22 Jan 2007 17:50:21 +0000 (17:50 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 22 Jan 2007 17:50:21 +0000 (17:50 -0000)
Makefile.flags

index 384b0f8d6b958847b26535e4227bfa0319e6f036..669e30cfcfbfa42fc2ad9a3c3bae92dfd8fb2b1e 100644 (file)
@@ -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