Page MenuHomeFreeBSD

sys/systm.h: use __nodiscard consistently and correctly
ClosedPublic

Authored by brooks on Jun 26 2026, 12:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 13, 1:38 AM
Unknown Object (File)
Wed, Aug 12, 12:08 AM
Unknown Object (File)
Tue, Aug 11, 5:16 PM
Unknown Object (File)
Mon, Aug 10, 12:07 PM
Unknown Object (File)
Mon, Aug 10, 9:50 AM
Unknown Object (File)
Mon, Aug 10, 9:36 AM
Unknown Object (File)
Mon, Aug 10, 9:36 AM
Unknown Object (File)
Mon, Aug 10, 12:37 AM
Subscribers
None

Details

Summary

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.

Sponsored by: DARPA, AFRL

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable