svn commit: trunk/uClibc: extra/Configs
vapier at uclibc.org
vapier at uclibc.org
Tue Jan 31 02:28:21 UTC 2006
Author: vapier
Date: 2006-01-30 18:28:11 -0800 (Mon, 30 Jan 2006)
New Revision: 13742
Log:
make the extra warnings optional
Modified:
trunk/uClibc/Rules.mak
trunk/uClibc/extra/Configs/Config.in
Changeset:
Modified: trunk/uClibc/Rules.mak
===================================================================
--- trunk/uClibc/Rules.mak 2006-01-31 01:50:28 UTC (rev 13741)
+++ trunk/uClibc/Rules.mak 2006-01-31 02:28:11 UTC (rev 13742)
@@ -295,10 +295,12 @@
# 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)))
Modified: trunk/uClibc/extra/Configs/Config.in
===================================================================
--- trunk/uClibc/extra/Configs/Config.in 2006-01-31 01:50:28 UTC (rev 13741)
+++ trunk/uClibc/extra/Configs/Config.in 2006-01-31 02:28:11 UTC (rev 13742)
@@ -1450,6 +1450,12 @@
help
Set this to the set of gcc warnings you wish to see while compiling.
+config EXTRA_WARNINGS
+ bool "Enable extra annoying warnings"
+ default n
+ help
+ If you wish to build with extra warnings enabled, say Y here.
+
config DOMULTI
bool "Compile all sources at once into an object"
default n
More information about the uClibc-cvs
mailing list