Module Name:    src
Committed By:   joerg
Date:           Wed May 25 15:02:25 UTC 2011

Modified Files:
        src/share/mk: bsd.sys.mk

Log Message:
Restrict -Wno-non-template-friend and -Wno-pmf-conversions to GCC.


To generate a diff of this commit:
cvs rdiff -u -r1.199 -r1.200 src/share/mk/bsd.sys.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.199 src/share/mk/bsd.sys.mk:1.200
--- src/share/mk/bsd.sys.mk:1.199	Wed May 25 15:01:08 2011
+++ src/share/mk/bsd.sys.mk	Wed May 25 15:02:25 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.sys.mk,v 1.199 2011/05/25 15:01:08 joerg Exp $
+#	$NetBSD: bsd.sys.mk,v 1.200 2011/05/25 15:02:25 joerg Exp $
 #
 # Build definitions used for NetBSD source tree builds.
 
@@ -51,8 +51,8 @@
 CXXFLAGS+=	-Wabi
 CXXFLAGS+=	-Wold-style-cast
 CXXFLAGS+=	-Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder \
-		-Wno-deprecated -Wno-non-template-friend \
-		-Woverloaded-virtual -Wno-pmf-conversions -Wsign-promo -Wsynth
+		-Wno-deprecated -Woverloaded-virtual -Wsign-promo -Wsynth
+CXXFLAGS+=	${${ACTIVE_CXX} == "gcc":? -Wno-non-template-friend -Wno-pmf-conversions :}
 .endif
 .if ${WARNS} > 3 && defined(HAVE_GCC) && ${HAVE_GCC} >= 3
 CFLAGS+=	-Wsign-compare

Reply via email to