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

Details

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