Re: git: e8e691983bb7 - main - suppress set but not used warnings for kernel builds

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 05 Apr 2022 23:25:55 UTC
On 4/5/22 2:43 PM, Robert Wing wrote:
> The branch main has been updated by rew:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=e8e691983bb75e80153b802f47733f1531615fa2
> 
> commit e8e691983bb75e80153b802f47733f1531615fa2
> Author:     Robert Wing <rew@FreeBSD.org>
> AuthorDate: 2022-04-05 21:28:54 +0000
> Commit:     Robert Wing <rew@FreeBSD.org>
> CommitDate: 2022-04-05 21:34:34 +0000
> 
>      suppress set but not used warnings for kernel builds
>      
>      Use -Wno-unused-but-set-variable for kernel builds with clang13.
>      
>      To turn this warning back on, set the following in src.conf:
>          WITH_SET_BUT_NOTUSED_KERNEL_WARNINGS=
>      
>      Reviewed by:    mjg, imp
>      Differential Revision:  https://reviews.freebsd.org/D34784

Can you apply the same logic for GCC as well (also in kern.mk)?

-- 
John Baldwin