Module Name: src
Committed By: uwe
Date: Sat Oct 5 18:37:40 UTC 2019
Modified Files:
src/share/mk: bsd.sys.mk
Log Message:
Don't add -Wabi to CXXFLAGS for gcc 8. It warns about differences
from the most up-to-date ABI, which in gcc 8 is used by default.
XXX: This needs a better condition.
To generate a diff of this commit:
cvs rdiff -u -r1.292 -r1.293 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.292 src/share/mk/bsd.sys.mk:1.293
--- src/share/mk/bsd.sys.mk:1.292 Wed May 22 08:31:25 2019
+++ src/share/mk/bsd.sys.mk Sat Oct 5 18:37:39 2019
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.292 2019/05/22 08:31:25 kamil Exp $
+# $NetBSD: bsd.sys.mk,v 1.293 2019/10/05 18:37:39 uwe Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -103,7 +103,11 @@ CFLAGS+= -Wcast-qual -Wwrite-strings
CFLAGS+= -Wextra -Wno-unused-parameter
# Readd -Wno-sign-compare to override -Wextra with clang
CFLAGS+= -Wno-sign-compare
+.if "${ACTIVE_CC}" == "gcc" && ${HAVE_GCC} != "8"
+# XXX: Won't warn about anything. -Wabi warns about differences from
+# the most up-to-date ABI, which in g++ 8 is used by default.
CXXFLAGS+= -Wabi
+.endif
CXXFLAGS+= -Wold-style-cast
CXXFLAGS+= -Wctor-dtor-privacy -Wnon-virtual-dtor -Wreorder \
-Wno-deprecated -Woverloaded-virtual -Wsign-promo -Wsynth