Page MenuHomeFreeBSD

cdefs.h: Introduce __nonstring attribute
ClosedPublic

Authored by arichardson on Sep 15 2025, 11:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 25, 7:18 AM
Unknown Object (File)
Jun 4 2026, 2:15 PM
Unknown Object (File)
May 30 2026, 6:55 PM
Unknown Object (File)
May 15 2026, 7:12 AM
Unknown Object (File)
May 15 2026, 6:54 AM
Unknown Object (File)
May 15 2026, 6:54 AM
Unknown Object (File)
May 14 2026, 6:07 PM
Unknown Object (File)
May 14 2026, 2:45 PM
Subscribers
None

Details

Summary

This attribute can be used to annotate char arrays that are not supposed to
be terminated with a NUL char and is needed to silence clang's new
-Wunterminated-string-initialization warning. The name matches linuxkpi.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable