HomeFreeBSD

kdb_sysctl_trap: suppress gcc -Warray-bounds

Description

kdb_sysctl_trap: suppress gcc -Warray-bounds

gcc diagnosed a dereference of 0x10 with -Warray-bounds, which is
entirely sensible, except that this is a deliberate trap. Throw gcc off
with a volatile pointer.

Reviewed by: kib (previous version)
Differential Revision: https://reviews.freebsd.org/D45917

Details

Provenance
rlibbyAuthored on Jul 9 2024, 5:58 PM
Reviewer
kib
Differential Revision
D45917: kdb_sysctl_trap: suppress gcc -Warray-bounds
Parents
rG2207aaba8977: kern_exec.c: quiet gcc -Wmaybe-uninitialized
Branches
Unknown
Tags
Unknown