diff options
author | Kees Cook <kees@kernel.org> | 2025-03-10 15:23:32 -0700 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2025-03-12 09:48:14 +0100 |
commit | c04d96913c88fdc11400ca6dd7f436bb6ecc764c (patch) | |
tree | 47c1d8019d8b59210ced3b8e8ae6c6a8155d29e5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9324731b9985478faf7f77713cc5e5fee811716e (diff) |
wifi: mwifiex: 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]
Cc: Brian Norris <briannorris@chromium.org>
Cc: Francesco Dolcini <francesco@dolcini.it>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Allison Randal <allison@lohutok.net>
Cc: linux-wireless@vger.kernel.org
Signed-off-by: Kees Cook <kees@kernel.org>
Link: https://patch.msgid.link/20250310222332.work.202-kees@kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions