HomeFreeBSD

Disable errors for -Wnonnull for the kernel for GCC 12.

Description

Disable errors for -Wnonnull for the kernel for GCC 12.

The USB code and some other places raise false positives when a NULL
pointer is passed to an inlined function along with a separate length
and the compiler can't determine that the separate length of 0
prevents the use of the NULL pointer.

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

Details

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