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
F176202340: D57882.id180703.diff
Fri, Oct 16, 10:17 PM
Unknown Object (File)
Tue, Oct 13, 7:47 PM
Unknown Object (File)
Fri, Oct 9, 1:01 AM
Unknown Object (File)
Mon, Oct 5, 3:00 PM
Unknown Object (File)
Mon, Oct 5, 1:22 AM
Unknown Object (File)
Sun, Oct 4, 11:02 AM
Unknown Object (File)
Sat, Oct 3, 2:30 PM
Unknown Object (File)
Thu, Sep 24, 4:11 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