Page MenuHomeFreeBSD

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

Authored by brooks on Fri, Jun 26, 12:16 PM.
Tags
None
Referenced Files
F162638683: D57882.diff
Wed, Jul 15, 7:28 AM
F162638682: D57882.diff
Wed, Jul 15, 7:28 AM
Unknown Object (File)
Sat, Jul 11, 9:01 PM
Unknown Object (File)
Mon, Jul 6, 12:19 AM
Unknown Object (File)
Mon, Jul 6, 12:16 AM
Unknown Object (File)
Sun, Jul 5, 7:22 PM
Unknown Object (File)
Sun, Jul 5, 7:19 PM
Unknown Object (File)
Sat, Jul 4, 12:31 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