Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Sep 2019 18:27:57 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r352603 - head/sys/conf
Message-ID:  <201909221827.x8MIRvFM014001@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Sun Sep 22 18:27:57 2019
New Revision: 352603
URL: https://svnweb.freebsd.org/changeset/base/352603

Log:
  Honor CWARNFLAGS.clang/gcc in the kernel build
  
  Some kernel builds or users may want to disable warnings on a per-compiler
  basis, so do this now.

Modified:
  head/sys/conf/kern.mk

Modified: head/sys/conf/kern.mk
==============================================================================
--- head/sys/conf/kern.mk	Sun Sep 22 18:07:52 2019	(r352602)
+++ head/sys/conf/kern.mk	Sun Sep 22 18:27:57 2019	(r352603)
@@ -253,6 +253,7 @@ CFLAGS+=	-gdwarf-2
 .endif
 
 CFLAGS+= ${CWARNFLAGS:M*} ${CWARNFLAGS.${.IMPSRC:T}}
+CFLAGS+= ${CWARNFLAGS.${COMPILER_TYPE}}
 CFLAGS+= ${CFLAGS.${COMPILER_TYPE}} ${CFLAGS.${.IMPSRC:T}}
 
 # Tell bmake not to mistake standard targets for things to be searched for



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