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, Sep 24, 4:11 PM
Unknown Object (File)
Thu, Sep 24, 2:51 PM
Unknown Object (File)
Thu, Sep 17, 4:55 PM
Unknown Object (File)
Wed, Sep 16, 1:14 AM
Unknown Object (File)
Sat, Sep 12, 6:51 PM
Unknown Object (File)
Thu, Sep 10, 11:21 PM
Unknown Object (File)
Thu, Sep 10, 6:49 PM
Unknown Object (File)
Tue, Sep 8, 4:20 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