Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jun 2018 16:20:23 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r334619 - head/sys/conf
Message-ID:  <201806041620.w54GKNaG003348@repo.freebsd.org>

Next in thread | Raw E-Mail | Index | Archive | Help
Author: br
Date: Mon Jun  4 16:20:22 2018
New Revision: 334619
URL: https://svnweb.freebsd.org/changeset/base/334619

Log:
  Fix build: ignore a GCC 7.2.0 warning which says that third argument of
  memset(3) should contain the number of elements multiplied by the element
  size.
  
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/conf/kern.mk

Modified: head/sys/conf/kern.mk
==============================================================================
--- head/sys/conf/kern.mk	Mon Jun  4 15:44:17 2018	(r334618)
+++ head/sys/conf/kern.mk	Mon Jun  4 16:20:22 2018	(r334619)
@@ -67,6 +67,9 @@ CWARNEXTRA+=	-Wno-error=misleading-indentation		\
 		-Wno-error=shift-overflow			\
 		-Wno-error=tautological-compare
 .endif
+.if ${COMPILER_VERSION} >= 70200
+CWARNEXTRA+=	-Wno-error=memset-elt-size
+.endif
 .if ${COMPILER_VERSION} >= 80000
 CWARNEXTRA+=	-Wno-error=packed-not-aligned
 .endif



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?201806041620.w54GKNaG003348>