aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorThomas Weißschuh <[email protected]>2025-06-23 21:34:32 +0000
committerThomas Weißschuh <[email protected]>2025-06-23 21:49:07 +0000
commitfb1cacdbacd905d2099656458082482c6d1bc0c0 (patch)
tree0907d267e311535374029c8949479e0b803de752 /lib/crypto/mpi/mpi-cmp.c
parentselftests/nolibc: integrate with kselftests (diff)
downloadkernel-fb1cacdbacd905d2099656458082482c6d1bc0c0.tar.gz
kernel-fb1cacdbacd905d2099656458082482c6d1bc0c0.zip
selftests/nolibc: avoid GCC 15 -Wunterminated-string-initialization
On GCC 15 the following warnings is emitted: nolibc-test.c: In function ‘run_stdlib’: nolibc-test.c:1416:32: warning: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (11 chars into 10 available) [-Wunterminated-string-initialization] 1416 | char buf[10] = "test123456"; | ^~~~~~~~~~~~ Increase the size of buf to avoid the warning. It would also be possible to use __attribute__((nonstring)) but that would require some ifdeffery to work with older compilers. Fixes: 1063649cf531 ("selftests/nolibc: Add tests for strlcat() and strlcpy()") Acked-by: Willy Tarreau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Thomas Weißschuh <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions