HomeFreeBSD

sys/systm.h: use __nodiscard consistently and correctly

Description

sys/systm.h: use __nodiscard consistently and correctly

nodiscard is closer to (and sometimes expands to) nodiscard from
C23 and C++17 so prefer it to the homegrown
result_use_check and put
it in the right place so it is correct when expanded to nodiscard.

Reviewed by: markj, emaste
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D57882

Details

Provenance
brooksAuthored on Jun 26 2026, 4:42 PM
Reviewer
markj
Differential Revision
D57882: sys/systm.h: use __nodiscard consistently and correctly
Parents
rG2515e3f6776a: cdefs(9): encourage __nodiscard over __result_use_check
Branches
Unknown
Tags
Unknown