libsa: Disable -Wdangling-pointer for zfs.c.
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 5 Dec 2022 00:27:22 +0000 (16:27 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 5 Dec 2022 00:27:22 +0000 (16:27 -0800)
commit0163de282e3195a1845f75b486adb3e1e7580199
tree22f5a432dde90e800107f21945600ea5e9c586cc
parentad96424e31a8c8c87fac8077fd4304c6fb133e25
libsa: Disable -Wdangling-pointer for zfs.c.

GCC 12 warns about a dangling pointer to 'objid' in
zfs_bootenv_initial().  However, this appears to be a false positive
as the pointer to 'objid' is only passed to zfs_lookup_dataset() but
not saved anywhere that outlives the lifetime of the
zfs_bootenv_initial() function.

Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D37533
stand/libsa/zfs/Makefile.inc