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)
Wed, Jan 28, 12:47 AM
Unknown Object (File)
Jan 10 2026, 9:57 AM
Unknown Object (File)
Jan 10 2026, 9:13 AM
Unknown Object (File)
Jan 10 2026, 9:02 AM
Unknown Object (File)
Jan 9 2026, 10:32 PM
Unknown Object (File)
Jan 5 2026, 3:23 AM
Unknown Object (File)
Dec 14 2025, 8:30 AM
Unknown Object (File)
Dec 8 2025, 7:55 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.