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)
Fri, Sep 4, 5:11 AM
Unknown Object (File)
Fri, Sep 4, 1:07 AM
Unknown Object (File)
Fri, Sep 4, 12:25 AM
Unknown Object (File)
Thu, Sep 3, 7:52 PM
Unknown Object (File)
Thu, Sep 3, 5:35 PM
Unknown Object (File)
Wed, Sep 2, 8:58 AM
Unknown Object (File)
Tue, Sep 1, 11:09 PM
Unknown Object (File)
Tue, Sep 1, 10:13 PM
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