- switch Warning Of the Week to wrong or missing prototypes.
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 2 Apr 2006 20:41:55 +0000 (20:41 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sun, 2 Apr 2006 20:41:55 +0000 (20:41 -0000)
  e.g. archival/uncompress.c wrongly includes libbb.h instead of busybox.h
  decompress_bunzip2.c,open_transformer.c don't include the proper "unarchive.h"
  etc, etc.

Rules.mak

index 98ed9654382211f1ed9e0e6172c5fefd1cfc08c3..ada1735e8e2c61c3fcef345562b9a6823a24887f 100644 (file)
--- a/Rules.mak
+++ b/Rules.mak
@@ -198,11 +198,9 @@ else
 endif
 # warn a bit more verbosely for non-release versions
 ifneq ($(EXTRAVERSION),)
-    CFLAGS+=$(call check_gcc,-Wformat,)
-    CFLAGS+=$(call check_gcc,-Wformat=2,)
-    CFLAGS+=$(call check_gcc,-Wformat-nonliteral,)
-    CFLAGS+=$(call check_gcc,-Wformat-security,)
-    CFLAGS+=$(call check_gcc,-Wformat-y2k,)
+    CFLAGS+=$(call check_gcc,-Wstrict-prototypes,)
+    CFLAGS+=$(call check_gcc,-Wmissing-prototypes,)
+    CFLAGS+=$(call check_gcc,-Wmissing-declarations,)
 endif
 STRIPCMD:=$(STRIP) -s --remove-section=.note --remove-section=.comment
 ifeq ($(strip $(CONFIG_STATIC)),y)