OSDN Git Service

Add more warnings, for release we should guard later w/ DODEBUG
authorPeter S. Mazinger <ps.m@gmx.net>
Mon, 23 Jan 2006 22:49:39 +0000 (22:49 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Mon, 23 Jan 2006 22:49:39 +0000 (22:49 -0000)
Rules.mak

index 531e925..2f16dbe 100644 (file)
--- a/Rules.mak
+++ b/Rules.mak
@@ -295,12 +295,19 @@ OPTIMIZATION+=$(call check_gcc,-funit-at-a-time,)
 
 # Add a bunch of extra pedantic annoyingly strict checks
 XWARNINGS=$(subst ",, $(strip $(WARNINGS))) -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
+XWARNINGS+=-Wnested-externs -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wformat=2
+#XWARNINGS+=-Wmissing-prototypes -Wmissing-declarations
+# works only w/ gcc-3.4 and up, can't be checked for gcc-3.x w/ check_gcc()
+#XWARNINGS+=-Wdeclaration-after-statement
 XARCH_CFLAGS=$(subst ",, $(strip $(ARCH_CFLAGS)))
 CPU_CFLAGS=$(subst ",, $(strip $(CPU_CFLAGS-y)))
 
 # Make sure "char" behavior is the same everywhere
 CPU_CFLAGS += -fsigned-char
 
+# only i386 is known to work if compile.S gets -D__ASSEMBLER__
+#CPU_CFLAGS += -std=c99
+
 LDADD_LIBFLOAT=
 ifeq ($(UCLIBC_HAS_SOFT_FLOAT),y)
 # Add -msoft-float to the CPU_FLAGS since ldso and libdl ignore CFLAGS.