aboutsummaryrefslogtreecommitdiff
path: root/benchtests/json-lib.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-12-18 06:55:35 +0800
committerH.J. Lu <hjl.tools@gmail.com>2024-12-18 09:32:38 +0800
commitcd90d3ca7d5b515cb096d8c1d7c83b94ef6eba71 (patch)
tree6fbaccf7c8d9aa4e09526e489cff1bd92015b170 /benchtests/json-lib.c
parentae5062201d7e9d18fe88bff4bc71088374c394fb (diff)
downloadglibc-cd90d3ca7d5b515cb096d8c1d7c83b94ef6eba71.zip
glibc-cd90d3ca7d5b515cb096d8c1d7c83b94ef6eba71.tar.gz
glibc-cd90d3ca7d5b515cb096d8c1d7c83b94ef6eba71.tar.bz2
Replace __strcpy_chk with __builtin___strcpy_chk
Although _chk functions are exported in libc.so.6, their prototypes aren't provided. Their built versions are supported by compiler. Replace __strcpy_chk with __builtin___strcpy_chk to silence Clang error: ./tst-gnuglob-skeleton.c:225:3: error: call to undeclared function '__strcpy_chk'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 225 | __strcpy_chk (dir->d.d_name, filesystem[dir->idx].name, NAME_MAX); | ^ Signed-off-by: H.J. Lu <hjl.tools@gmail.com> Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'benchtests/json-lib.c')
0 files changed, 0 insertions, 0 deletions