diff options
author | Stefan Liebler <stli@linux.ibm.com> | 2024-06-27 13:42:37 +0200 |
---|---|---|
committer | Stefan Liebler <stli@linux.ibm.com> | 2024-06-27 16:49:26 +0200 |
commit | c0f21e073d45670cb54811b07fce8e612a91f107 (patch) | |
tree | 9cc5dad2a3c9f159ee976eaa1575bb6e535e3186 /sysdeps/arm/fix-fp-int-convert-overflow.h | |
parent | 21738846a19eb4a36981efd37d9ee7cb6d687494 (diff) | |
download | glibc-c0f21e073d45670cb54811b07fce8e612a91f107.zip glibc-c0f21e073d45670cb54811b07fce8e612a91f107.tar.gz glibc-c0f21e073d45670cb54811b07fce8e612a91f107.tar.bz2 |
tests-mbwc: Silence gcc 14 -Werror=format-overflow=
With gcc 14, I get this warning/werror when building the localedata tests:
tests-mbwc/tsp_common.c: In function ‘result.constprop.isra’:
tests-mbwc/tsp_common.c:55:43: error: ‘%s’ directive writing up to 92 bytes into a region of size between 0 and 114 [-Werror=format-overflow=]
55 | sprintf (result_rec, "%s:%s:%d:%d:%d:%c:%s\n", func, loc, rec_no, seq_no,
| ^~
In file included from ../include/bits/stdio2.h:1,
from ../libio/stdio.h:980,
from ../include/stdio.h:14,
from tests-mbwc/tsp_common.c:10:
In function ‘sprintf’,
inlined from ‘result.constprop.isra’ at tests-mbwc/tsp_common.c:55:3:
../libio/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 20 and 234 bytes into a destination of size 132
30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
31 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
This patch now gets rid of using sprintf and the result_rec buffer and just
prints to fp directly.
Diffstat (limited to 'sysdeps/arm/fix-fp-int-convert-overflow.h')
0 files changed, 0 insertions, 0 deletions