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 <[EMAIL PROTECTED]>
* 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)