HomeFreeBSD

Disable -Wdangling-pointer for the kernel for GCC 12.

Description

Disable -Wdangling-pointer for the kernel for GCC 12.

Some of the warnings raised in the kernel seem to be outright bugs in
the compiler (e.g. the cases in ata_xpt.c and scsi_xpt.c). Other
cases are not fatal and it didn't seem to find any legitimate bugs in
the kernel.

Differential Revision: https://reviews.freebsd.org/D37629

(cherry picked from commit 2637ed558baacdab7a8cf789dca713bde5843e43)

Details

Provenance
jhbAuthored on Dec 21 2022, 6:46 PM
Differential Revision
D37629: Disable -Wdangling-pointer for the kernel for GCC 12.
Parents
rG64313140e531: iee80211_hwmp: Don't dereference NULL ni in debug printf.
Branches
Unknown
Tags
Unknown