git: 766c4ad385cc - main - libzpool: Disable -Wpointer-to-int-cast warnings for GCC

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 07 May 2024 20:54:16 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=766c4ad385ccf96f8cf10129363a6bfa58b3e92f

commit 766c4ad385ccf96f8cf10129363a6bfa58b3e92f
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2024-05-07 19:32:58 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2024-05-07 20:54:00 +0000

    libzpool: Disable -Wpointer-to-int-cast warnings for GCC
    
    This warning is already disabled for zfs.ko.
---
 cddl/lib/libzpool/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cddl/lib/libzpool/Makefile b/cddl/lib/libzpool/Makefile
index f641edaccb52..149c14919028 100644
--- a/cddl/lib/libzpool/Makefile
+++ b/cddl/lib/libzpool/Makefile
@@ -288,6 +288,8 @@ CSTD=	c99
 
 CFLAGS+=	-g -DDEBUG=1
 
+CFLAGS.gcc+=	-Wno-pointer-to-int-cast
+
 # Pointer values are used as debugging "tags" to mark reference count
 # ownerships and in some cases the tag reference is dropped after an
 # object is freed.