Thanks! The more granular we can be about disabling specific warnings for specific compilers and/or files, the less we lose out on by disabling more broadly.
On Sun, Sep 22, 2019 at 11:28 AM Kyle Evans <kev...@freebsd.org> wrote: > > 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 _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"