From e73b1211737842732951f9b9049294ef732e1ef0 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 31 Jan 2006 02:28:11 +0000 Subject: make the extra warnings optional --- Rules.mak | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Rules.mak') diff --git a/Rules.mak b/Rules.mak index f439baba4..8cffc323d 100644 --- a/Rules.mak +++ b/Rules.mak @@ -295,10 +295,12 @@ 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 +ifeq ($(EXTRA_WARNINGS),y) 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 +endif XARCH_CFLAGS=$(subst ",, $(strip $(ARCH_CFLAGS))) CPU_CFLAGS=$(subst ",, $(strip $(CPU_CFLAGS-y))) -- cgit v1.2.3