Date: Wed, 30 Dec 2020 23:18:03 GMT From: Ryan Libby <rlibby@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: be3bbda216c5 - stable/12 - Don't add -Wno-class-memaccess with older gcc. Message-ID: <202012302318.0BUNI3Ov069695@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by rlibby: URL: https://cgit.FreeBSD.org/src/commit/?id=be3bbda216c5cab1d846d1555f0afe8b5b17e45f commit be3bbda216c5cab1d846d1555f0afe8b5b17e45f Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2019-08-09 23:50:57 +0000 Commit: Ryan Libby <rlibby@FreeBSD.org> CommitDate: 2020-12-30 18:33:01 +0000 Don't add -Wno-class-memaccess with older gcc. This is a gcc 8.0+ warning which needed to be silenced on for the riscv build. amd64-xtoolchain-gcc still uses gcc 6.4.0 and does not understand this flag. Reviewed by: asomers Feedback from: imp Differential Revision: https://reviews.freebsd.org/D21195 (cherry picked from commit 4a045a66fd912b0e28a0585dbd8991643ccc2cb0) --- tests/sys/fs/fusefs/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/sys/fs/fusefs/Makefile b/tests/sys/fs/fusefs/Makefile index 96f08963b1e4..ebe4061c1668 100644 --- a/tests/sys/fs/fusefs/Makefile +++ b/tests/sys/fs/fusefs/Makefile @@ -1,5 +1,7 @@ # $FreeBSD$ +.include <bsd.compiler.mk> + PACKAGE= tests TESTSDIR= ${TESTSBASE}/sys/fs/fusefs @@ -66,7 +68,10 @@ TEST_METADATA+= timeout=10 FUSEFS= ${SRCTOP}/sys/fs/fuse MOUNT= ${SRCTOP}/sbin/mount # Suppress warnings that GCC generates for the libc++ and gtest headers. -CXXWARNFLAGS.gcc+= -Wno-placement-new -Wno-attributes -Wno-class-memaccess +CXXWARNFLAGS.gcc+= -Wno-placement-new -Wno-attributes +.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 80000 +CXXWARNFLAGS+= -Wno-class-memaccess +.endif CXXFLAGS+= -I${SRCTOP}/tests CXXFLAGS+= -I${FUSEFS} CXXFLAGS+= -I${MOUNT}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012302318.0BUNI3Ov069695>