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)
Wed, Apr 1, 6:36 PM
Unknown Object (File)
Tue, Mar 17, 4:06 PM
Unknown Object (File)
Tue, Mar 17, 6:38 AM
Unknown Object (File)
Mon, Mar 16, 12:09 AM
Unknown Object (File)
Feb 19 2026, 9:48 AM
Unknown Object (File)
Jan 21 2026, 4:05 AM
Unknown Object (File)
Jan 15 2026, 11:12 PM
Unknown Object (File)
Nov 30 2025, 12:11 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