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)
Tue, Apr 28, 3:53 PM
Unknown Object (File)
Mon, Apr 27, 4:16 PM
Unknown Object (File)
Mon, Apr 27, 4:07 PM
Unknown Object (File)
Mon, Apr 20, 12:13 AM
Unknown Object (File)
Mon, Apr 20, 12:13 AM
Unknown Object (File)
Mon, Apr 20, 12:13 AM
Unknown Object (File)
Wed, Apr 15, 8:12 AM
Unknown Object (File)
Tue, Apr 7, 1:40 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