svn commit: r352603 - head/sys/conf

Conrad Meyer cem at freebsd.org
Sun Sep 22 22:24:02 UTC 2019


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 <kevans at 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


More information about the svn-src-all mailing list