Re: git: 2e08e4b75ea1 - main - zfs: Fix build with GCC 12.

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Wed, 21 Dec 2022 22:01:11 UTC
On 21 Dec 2022, at 19:49, John Baldwin <jhb@freebsd.org> wrote:
> 
> URL: https://cgit.FreeBSD.org/src/commit/?id=2e08e4b75ea1080c224a33baf62199d893dc322d
> 
> commit 2e08e4b75ea1080c224a33baf62199d893dc322d
> Author:     John Baldwin <jhb@FreeBSD.org>
> AuthorDate: 2022-12-21 18:49:23 +0000
> Commit:     John Baldwin <jhb@FreeBSD.org>
> CommitDate: 2022-12-21 18:49:23 +0000
> 
>    zfs: Fix build with GCC 12.
> 
>    Silence -Winfinite-recursion for ldo.c in lua and -Wstringop-overread
>    for nvpair.c.
> 
>    Reviewed by:    mm
>    Differential Revision:  https://reviews.freebsd.org/D37631
...
> --- a/sys/conf/kern.mk
> +++ b/sys/conf/kern.mk
> @@ -81,6 +81,8 @@ CWARNEXTRA+= -Wno-address-of-packed-member \
> CWARNEXTRA+= -Wno-error=nonnull \
> -Wno-dangling-pointer \
> -Wno-zero-length-bounds
> +NO_WINFINTE_RECURSION= -Wno-infinite-recursion
> +NO_WSTRINGOP_OVERREAD= -Wno-stringop-overread
> .endif
> .endif

s/INFINTE/INFINITE/g ? :-)

-Dimitry