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)
Sun, Aug 9, 7:46 PM
Unknown Object (File)
Sun, Aug 9, 5:14 PM
Unknown Object (File)
Sun, Aug 9, 5:08 AM
Unknown Object (File)
Sun, Aug 9, 4:20 AM
Unknown Object (File)
Sun, Aug 9, 3:12 AM
Unknown Object (File)
Sat, Aug 8, 6:53 PM
Unknown Object (File)
Sat, Aug 8, 5:38 PM
Unknown Object (File)
Fri, Aug 7, 8:11 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