Page MenuHomeFreeBSD

cdefs.h: Introduce __nonstring attribute
Needs ReviewPublic

Authored by arichardson on Sep 15 2025, 11:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Oct 12, 4:39 PM
Unknown Object (File)
Fri, Oct 10, 11:32 PM
Unknown Object (File)
Thu, Oct 9, 9:29 PM
Unknown Object (File)
Thu, Oct 9, 1:43 PM
Unknown Object (File)
Thu, Oct 9, 1:42 PM
Unknown Object (File)
Thu, Oct 9, 12:42 PM
Unknown Object (File)
Wed, Oct 8, 8:57 PM
Unknown Object (File)
Thu, Oct 2, 5:33 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 Passed
Unit
No Test Coverage
Build Status
Buildable 67065
Build 63948: arc lint + arc unit