Skip to content
Commit 05e8d261 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

gcc-15: add '__nonstring' markers to byte arrays



All of these cases are perfectly valid and good traditional C, but hit
by the "you're not NUL-terminating your byte array" warning.

And none of the cases want any terminating NUL character.

Mark them __nonstring to shut up gcc-15 (and in the case of the ak8974
magnetometer driver, I just removed the explicit array size and let gcc
expand the 3-byte and 6-byte arrays by one extra byte, because it was
the simpler change).

Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent be913e7c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment