aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/x86
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 15:24:50 -0800
commitb98d0bbf747f39770e0caba7e984ce9f8f900330 (patch)
treebf21dfd0e6981282f32438eb8771d95ea2a6e7ba /sysdeps/x86
parent7835d611af0854e69a0c71e3806f8fe379282d6f (diff)
downloadglibc-b98d0bbf747f39770e0caba7e984ce9f8f900330.zip
glibc-b98d0bbf747f39770e0caba7e984ce9f8f900330.tar.gz
glibc-b98d0bbf747f39770e0caba7e984ce9f8f900330.tar.bz2
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>
Diffstat (limited to 'sysdeps/x86')
-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 b50c11e..300bc8c 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 */