about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorNoah Goldstein <goldstein.w.n@gmail.com>2022-02-18 17:00:25 -0600
committerH.J. Lu <hjl.tools@gmail.com>2022-02-18 19:14:01 -0800
commit8c21bd940eede12e210d5eeebd17e2c57e7c29ba (patch)
treef7a07769c5e99780ab6f8eaa9085f75e080a3a03 /sysdeps
parent9e69d744b3e13d594aeb3b10da556ee65daad99b (diff)
downloadglibc-8c21bd940eede12e210d5eeebd17e2c57e7c29ba.tar.gz
glibc-8c21bd940eede12e210d5eeebd17e2c57e7c29ba.tar.xz
glibc-8c21bd940eede12e210d5eeebd17e2c57e7c29ba.zip
x86: Fix TEST_NAME to make it a string in tst-strncmp-rtm.c
Previously TEST_NAME was passing a function pointer. This didn't fail
because of the -Wno-error flag (to allow for overflow sizes passed
to strncmp/wcsncmp)

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
(cherry picked from commit b98d0bbf747f39770e0caba7e984ce9f8f900330)
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/x86/tst-strncmp-rtm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/x86/tst-strncmp-rtm.c b/sysdeps/x86/tst-strncmp-rtm.c
index 4e9f094f39..aef9866cf2 100644
--- a/sysdeps/x86/tst-strncmp-rtm.c
+++ b/sysdeps/x86/tst-strncmp-rtm.c
@@ -23,12 +23,12 @@
 # define CHAR wchar_t
 # define MEMSET wmemset
 # define STRNCMP wcsncmp
-# define TEST_NAME wcsncmp
+# define TEST_NAME "wcsncmp"
 #else /* !WIDE */
 # define CHAR char
 # define MEMSET memset
 # define STRNCMP strncmp
-# define TEST_NAME strncmp
+# define TEST_NAME "strncmp"
 #endif /* !WIDE */