Page MenuHomeFreeBSD

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

Authored by fuz on Nov 27 2025, 10:17 PM.
Tags
None
Referenced Files
F174438140: D53967.id167249.diff
Sat, Oct 3, 5:32 AM
F174409365: D53967.id167215.diff
Sat, Oct 3, 12:08 AM
F174376330: D53967.diff
Fri, Oct 2, 7:07 PM
F174347100: D53967.diff
Fri, Oct 2, 2:26 PM
Unknown Object (File)
Fri, Sep 25, 10:08 AM
Unknown Object (File)
Fri, Sep 25, 10:06 AM
Unknown Object (File)
Wed, Sep 16, 8:45 PM
Unknown Object (File)
Wed, Sep 16, 2:36 PM
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.