diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-23 22:49:39 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2006-01-23 22:49:39 +0000 |
commit | a1b552b0fe39671d38f02965edcd24cd2f965572 (patch) | |
tree | 619e8b4dbcf792c416e8fa4c0e8d6b097494a460 | |
parent | cd7736ffa0dd5018fda249d95835cf17ca159094 (diff) |
Add more warnings, for release we should guard later w/ DODEBUG
-rw-r--r-- | Rules.mak | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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. |