Author: sebor
Date: Mon Jan 9 17:54:20 2006
New Revision: 367459
URL: http://svn.apache.org/viewcvs?rev=367459&view=rev
Log:
2006-01-09 Martin Sebor <[EMAIL PROTECTED]>
* gcc.config (-Wextra): Removed (thus partially reverting r366347). The
option is the same as -W except not portable to earlier versions of the
compiler.
Modified:
incubator/stdcxx/trunk/etc/config/gcc.config
Modified: incubator/stdcxx/trunk/etc/config/gcc.config
URL:
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/gcc.config?rev=367459&r1=367458&r2=367459&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/gcc.config (original)
+++ incubator/stdcxx/trunk/etc/config/gcc.config Mon Jan 9 17:54:20 2006
@@ -12,17 +12,13 @@
CXX_MAJOR := $(shell echo "$(CCVER)" | sed "s/^\([1-9][0-9]*\).*/\1/")
CXX_MINOR := $(shell echo "$(CCVER)" | sed "s/[1-9]*\.\([0-9]*\).*/\1/")
+# -W and -Wextra are the same
WARNFLAGS = -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings
# -Wno-long-long not available prior to 2.90
ifeq ($(shell [ $(CXX_MAJOR) -gt 2 -o $(CXX_MAJOR) -eq 2 -a $(CXX_MINOR) -ge
90 ] && echo 1), 1)
WARNFLAGS += -Wno-long-long
endif # gcc >= 2.90
-
-# enable additional warnings with gcc 3 and above
-ifneq ($(CXX_MAJOR),2)
- WARNFLAGS += -Wextra
-endif
# prevent (bogus?) warnings on SunOS
ifneq ($(OSNAME),SunOS)