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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to