Page MenuHomeFreeBSD

cdefs.h: Introduce __nonstring attribute
ClosedPublic

Authored by arichardson on Sep 15 2025, 11:24 PM.
Tags
None
Referenced Files
F174265418: D52565.diff
Thu, Oct 1, 8:49 PM
Unknown Object (File)
Mon, Sep 28, 1:47 PM
Unknown Object (File)
Fri, Sep 25, 9:49 PM
Unknown Object (File)
Fri, Sep 25, 2:40 AM
Unknown Object (File)
Thu, Sep 24, 4:02 PM
Unknown Object (File)
Thu, Sep 24, 7:14 AM
Unknown Object (File)
Sat, Sep 12, 4:28 AM
Unknown Object (File)
Tue, Sep 8, 9: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 Not Applicable
Unit
Tests Not Applicable