From 766c4ad385ccf96f8cf10129363a6bfa58b3e92f Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 7 May 2024 12:32:58 -0700 Subject: [PATCH] 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.