svn commit: r334619 - head/sys/conf
Ruslan Bukin
br at FreeBSD.org
Mon Jun 4 16:20:23 UTC 2018
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
More information about the svn-src-all
mailing list