Page MenuHomeFreeBSD

cdefs.h: Introduce __nonstring attribute
ClosedPublic

Authored by arichardson on Sep 15 2025, 11:24 PM.
Tags
None
Referenced Files
F163207012: D52565.id168221.diff
Tue, Jul 21, 1:36 AM
Unknown Object (File)
Mon, Jul 20, 4:56 AM
Unknown Object (File)
Sun, Jul 19, 11:43 AM
Unknown Object (File)
Sat, Jul 18, 5:52 PM
Unknown Object (File)
Sat, Jul 18, 3:41 PM
Unknown Object (File)
Sat, Jul 18, 11:52 AM
Unknown Object (File)
Wed, Jul 15, 6:44 AM
Unknown Object (File)
Wed, Jul 15, 6:44 AM
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