Page MenuHomeFreeBSD

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

Authored by brooks on Fri, Jun 26, 12:16 PM.

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