Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Aug 2019 23:50:57 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r350827 - head/tests/sys/fs/fusefs
Message-ID:  <201908092350.x79NovgE057294@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Fri Aug  9 23:50:57 2019
New Revision: 350827
URL: https://svnweb.freebsd.org/changeset/base/350827

Log:
  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

Modified:
  head/tests/sys/fs/fusefs/Makefile

Modified: head/tests/sys/fs/fusefs/Makefile
==============================================================================
--- head/tests/sys/fs/fusefs/Makefile	Fri Aug  9 20:16:38 2019	(r350826)
+++ head/tests/sys/fs/fusefs/Makefile	Fri Aug  9 23:50:57 2019	(r350827)
@@ -1,5 +1,7 @@
 # $FreeBSD$
 
+.include <bsd.compiler.mk>
+
 PACKAGE=	tests
 
 TESTSDIR=	${TESTSBASE}/sys/fs/fusefs
@@ -65,7 +67,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?201908092350.x79NovgE057294>