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).
This commit is contained in:
he 2005-08-09 15:24:26 +00:00
parent e31432ec85
commit 1042d80dad
1 changed files with 6 additions and 3 deletions

View File

@ -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. # Build definitions used for NetBSD source tree builds.
@ -25,8 +25,11 @@ CFLAGS+= -Wreturn-type -Wswitch -Wshadow
.endif .endif
.if ${WARNS} > 2 .if ${WARNS} > 2
CFLAGS+= -Wcast-qual -Wwrite-strings CFLAGS+= -Wcast-qual -Wwrite-strings
CXXFLAGS+= -Wabi -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder \ .if defined(HAVE_GCC3) && (${HAVE_GCC3} != "no")
-Wno-deprecated -Wno-non-template-friend -Wold-style-cast \ 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 -Woverloaded-virtual -Wno-pmf-conversions -Wsign-promo -Wsynth
.endif .endif
.if ${WARNS} > 3 && ${MACHINE_ARCH} != "vax" .if ${WARNS} > 3 && ${MACHINE_ARCH} != "vax"