Re: [PATCH] scsi: pm80xx: Add __nonstring annotations for unterminated strings
From: Martin K. Petersen
Date: Fri Apr 11 2025 - 21:55:51 EST
Kees,
>> > When a character array without a terminating NUL character has a
>> > static initializer, GCC 15's -Wunterminated-string-initialization
>> > will only warn if the array lacks the "nonstring" attribute[1].
>> > Mark the arrays with __nonstring to and correctly identify the char
>> > array as "not a C string" and thereby eliminate the warning.
Applied to 6.16/scsi-staging, thanks!
--
Martin K. Petersen