]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86: Fix TEST_NAME to make it a string in tst-strncmp-rtm.c
authorNoah Goldstein <goldstein.w.n@gmail.com>
Fri, 18 Feb 2022 23:00:25 +0000 (17:00 -0600)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 18 Feb 2022 23:24:50 +0000 (15:24 -0800)
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>
sysdeps/x86/tst-strncmp-rtm.c

index b50c11e8d44878e784acb28b707c53d2658184c8..300bc8c2814882fbff20bc7c139d27037be9807a 100644 (file)
 # 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 */