diff options
| author | Kees Cook <[email protected]> | 2025-03-11 22:55:20 +0000 |
|---|---|---|
| committer | Johannes Berg <[email protected]> | 2025-03-12 08:48:22 +0000 |
| commit | 8300f2504afeceac234027d433a2f71d4a39c7fe (patch) | |
| tree | 04e91b16b001ed349611fba7a351fc1776f6c924 /tools/testing/selftests/kvm/x86/nested_exceptions_test.c | |
| parent | wifi: mwifiex: Add __nonstring annotations for unterminated strings (diff) | |
| download | kernel-8300f2504afeceac234027d433a2f71d4a39c7fe.tar.gz kernel-8300f2504afeceac234027d433a2f71d4a39c7fe.zip | |
wifi: zd1211rw: Add __nonstring annotations for unterminated strings
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.
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117178 [1]
Signed-off-by: Kees Cook <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/x86/nested_exceptions_test.c')
0 files changed, 0 insertions, 0 deletions
