Page MenuHomeFreeBSD

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

Authored by fuz on Nov 27 2025, 10:17 PM.
Tags
None
Referenced Files
F171471178: D53967.id167249.diff
Fri, Sep 11, 7:32 AM
Unknown Object (File)
Thu, Sep 10, 10:11 AM
Unknown Object (File)
Tue, Sep 8, 1:46 AM
Unknown Object (File)
Mon, Sep 7, 8:31 PM
Unknown Object (File)
Sun, Sep 6, 7:07 PM
Unknown Object (File)
Sat, Sep 5, 4:18 AM
Unknown Object (File)
Mon, Aug 31, 8:20 AM
Unknown Object (File)
Tue, Aug 25, 8:56 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.