Source-Changes-HG archive

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

[src/trunk]: src/share/mk Gcc 2.95.3 doesn't support the -Wabi warning flag, ...



details:   https://anonhg.NetBSD.org/src/rev/9b0b922055a0
branches:  trunk
changeset: 583493:9b0b922055a0
user:      he <he%NetBSD.org@localhost>
date:      Tue Aug 09 15:24:26 2005 +0000

description:
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).

diffstat:

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

diffs (23 lines):

diff -r 0fc2838b19be -r 9b0b922055a0 share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk       Tue Aug 09 15:17:41 2005 +0000
+++ b/share/mk/bsd.sys.mk       Tue Aug 09 15:24:26 2005 +0000
@@ -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 @@
 .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"



Home | Main Index | Thread Index | Old Index