svn commit: r303190 - head/sys/conf

Ruslan Bukin br at FreeBSD.org
Fri Jul 22 16:15:37 UTC 2016


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


More information about the svn-src-all mailing list