On 12/21/22 2:01 PM, Dimitry Andric wrote:
On 21 Dec 2022, at 19:49, John Baldwin <[email protected]> wrote:
URL:
https://cgit.FreeBSD.org/src/commit/?id=2e08e4b75ea1080c224a33baf62199d893dc322d
commit 2e08e4b75ea1080c224a33baf62199d893dc322d
Author: John Baldwin <[email protected]>
AuthorDate: 2022-12-21 18:49:23 +0000
Commit: John Baldwin <[email protected]>
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 ? :-)
Oof. :-P
--
John Baldwin