Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Restrict -Wno-non-template-friend and -Wno-pmf-conv...



details:   https://anonhg.NetBSD.org/src/rev/3f3af98191c8
branches:  trunk
changeset: 765403:3f3af98191c8
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed May 25 15:02:25 2011 +0000

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

diffstat:

 share/mk/bsd.sys.mk |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r cd090d3bad06 -r 3f3af98191c8 share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk       Wed May 25 15:01:08 2011 +0000
+++ b/share/mk/bsd.sys.mk       Wed May 25 15:02:25 2011 +0000
@@ -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



Home | Main Index | Thread Index | Old Index