Page MenuHomeFreeBSD

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

Authored by fuz on Nov 27 2025, 10:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jul 3, 8:09 AM
Unknown Object (File)
Fri, Jun 26, 12:59 AM
Unknown Object (File)
Fri, Jun 26, 12:41 AM
Unknown Object (File)
Wed, Jun 24, 4:01 AM
Unknown Object (File)
Mon, Jun 22, 2:32 AM
Unknown Object (File)
Thu, Jun 18, 2:50 PM
Unknown Object (File)
Thu, Jun 18, 1:41 PM
Unknown Object (File)
Jun 8 2026, 9:17 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.Nov 27 2025, 10:17 PM
This revision is now accepted and ready to land.Nov 27 2025, 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.