Page MenuHomeFreeBSD

stddef.h: add unreachable() for C23 compliance
ClosedPublic

Authored by fuz on Thu, Nov 27, 10:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 14, 8:30 AM
Unknown Object (File)
Mon, Dec 8, 7:55 AM
Unknown Object (File)
Sun, Dec 7, 5:28 PM
Unknown Object (File)
Sun, Dec 7, 2:10 AM
Unknown Object (File)
Thu, Dec 4, 12:14 PM
Unknown Object (File)
Thu, Dec 4, 7:07 AM
Unknown Object (File)
Thu, Dec 4, 5:23 AM
Unknown Object (File)
Wed, Dec 3, 5:57 AM
Subscribers

Details

Summary

unreachable() is a hint to the compiler that it is unreachable.
Add a new man page unreachable(3) to document this macro.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 68904
Build 65787: arc lint + arc unit

Event Timeline

fuz requested review of this revision.Thu, Nov 27, 10:17 PM
This revision is now accepted and ready to land.Thu, Nov 27, 10:30 PM
alc added inline comments.
share/man/man3/unreachable.3
64

Aren't you missing a closing brace on the switch statement?

share/man/man3/unreachable.3
64

Very likely! Thanks for spotting this.