From 1042d80dad40553ea40819d60b7c9a5b7cf9b73d Mon Sep 17 00:00:00 2001 From: he Date: Tue, 9 Aug 2005 15:24:26 +0000 Subject: [PATCH] Gcc 2.95.3 doesn't support the -Wabi warning flag, so don't try to use it there. The vax port's va_start() macro uses a cast, so for the moment disable the -Wold-style-cast warning flag for the old GCC as well (as vax is the only remaining port using this compiler). --- share/mk/bsd.sys.mk | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 04cfee4cd676..b6ad8881415b 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.sys.mk,v 1.121 2005/08/09 02:38:06 christos Exp $ +# $NetBSD: bsd.sys.mk,v 1.122 2005/08/09 15:24:26 he Exp $ # # Build definitions used for NetBSD source tree builds. @@ -25,8 +25,11 @@ CFLAGS+= -Wreturn-type -Wswitch -Wshadow .endif .if ${WARNS} > 2 CFLAGS+= -Wcast-qual -Wwrite-strings -CXXFLAGS+= -Wabi -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder \ - -Wno-deprecated -Wno-non-template-friend -Wold-style-cast \ +.if defined(HAVE_GCC3) && (${HAVE_GCC3} != "no") +CXXFLAGS+= -Wabi -Wold-style-cast +.endif +CXXFLAGS+= -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder \ + -Wno-deprecated -Wno-non-template-friend \ -Woverloaded-virtual -Wno-pmf-conversions -Wsign-promo -Wsynth .endif .if ${WARNS} > 3 && ${MACHINE_ARCH} != "vax"