Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jul 2016 16:15:35 +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: r303190 - head/sys/conf
Message-ID:  <201607221615.u6MGFZgA066648@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: br
Date: Fri Jul 22 16:15:35 2016
New Revision: 303190
URL: https://svnweb.freebsd.org/changeset/base/303190

Log:
  Add GCC 6.1 warn flags for kernel as well.
  
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/conf/kern.mk

Modified: head/sys/conf/kern.mk
==============================================================================
--- head/sys/conf/kern.mk	Fri Jul 22 15:22:49 2016	(r303189)
+++ head/sys/conf/kern.mk	Fri Jul 22 16:15:35 2016	(r303190)
@@ -50,6 +50,9 @@ CWARNEXTRA?=	-Wno-error=inline -Wno-erro
 		-Wno-error=array-bounds -Wno-error=address \
 		-Wno-error=cast-qual -Wno-error=sequence-point -Wno-error=attributes \
 		-Wno-error=strict-overflow -Wno-error=overflow
+.if ${COMPILER_VERSION} >= 60100
+CWARNEXTRA+=	-Wno-error=nonnull-compare -Wno-error=shift-overflow=
+.endif
 .else
 # For gcc 4.2, eliminate the too-often-wrong warnings about uninitialized vars.
 CWARNEXTRA?=	-Wno-uninitialized



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607221615.u6MGFZgA066648>