Page MenuHomeFreeBSD

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

Authored by fuz on Nov 27 2025, 10:17 PM.
Tags
None
Referenced Files
F163290746: D53967.id.diff
Tue, Jul 21, 7:00 PM
Unknown Object (File)
Fri, Jul 17, 5:44 PM
Unknown Object (File)
Fri, Jul 17, 8:55 AM
Unknown Object (File)
Wed, Jul 15, 6:57 AM
Unknown Object (File)
Wed, Jul 15, 6:57 AM
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
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 Not Applicable
Unit
Tests Not Applicable

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
63

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

share/man/man3/unreachable.3
63

Very likely! Thanks for spotting this.