HomeFreeBSD

libsa: Disable -Wdangling-pointer for zfs.c.

Description

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

(cherry picked from commit 0163de282e3195a1845f75b486adb3e1e7580199)

Details

Provenance
jhbAuthored on Dec 5 2022, 12:27 AM
Reviewer
imp
Differential Revision
D37533: libsa: Disable -Wdangling-pointer for zfs.c.
Parents
rG83a2c663b979: bsd.sys.mk: Add NO_WDANGLING_POINTER helper variable.
Branches
Unknown
Tags
Unknown