Date: Tue, 7 May 2024 20:54:16 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 766c4ad385cc - main - libzpool: Disable -Wpointer-to-int-cast warnings for GCC Message-ID: <202405072054.447KsGnm039812@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405072054.447KsGnm039812>