incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Liviu Nicoara <nico...@roguewave.com>
Subject [PATCH] The new -Wextra breaking some gcc builds
Date Mon, 09 Jan 2006 23:03:09 GMT
A minor issue: -Wextra in gcc.config added for CXX_MAJOR != 2 breaks gcc
builds. AFAICT, it's a valid option starting with 3.4.x.

Liviu

2006-01-09  Liviu Nicoara  <nicoara@roguewave.com>

	* etc/config/gcc.config: altered conditional
	  to add -Wextra for gcc > 3.4



Index: etc/config/gcc.config
===================================================================
--- etc/config/gcc.config       (revision 367394)
+++ etc/config/gcc.config       (working copy)
@@ -19,10 +19,12 @@
 WARNFLAGS      += -Wno-long-long
 endif   # gcc >= 2.90

-# enable additional warnings with gcc 3 and above
-ifneq ($(CXX_MAJOR),2)
+# enable additional warnings with gcc 3.4 and above
+ifeq ($(shell expr $(CXX_MAJOR) \> 2),1)
+ifeq ($(shell expr $(CXX_MINOR) \> 3),1)
   WARNFLAGS += -Wextra
 endif
+endif

 # prevent (bogus?) warnings on SunOS
 ifneq ($(OSNAME),SunOS)



Mime
View raw message