From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1039) id 1B34238515CB; Sat, 19 Feb 2022 03:58:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B34238515CB Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: H.J. Lu To: glibc-cvs@sourceware.org Subject: [glibc/release/2.28/master] x86: Fix TEST_NAME to make it a string in tst-strncmp-rtm.c X-Act-Checkin: glibc X-Git-Author: Noah Goldstein X-Git-Refname: refs/heads/release/2.28/master X-Git-Oldrev: c9ea3126b8d7ea0b5aa67e5788a27f7e58814ad0 X-Git-Newrev: f1267ef5fa3d518cc4f192a5d119fcb259958348 Message-Id: <20220219035828.1B34238515CB@sourceware.org> Date: Sat, 19 Feb 2022 03:58:28 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Feb 2022 03:58:28 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f1267ef5fa3d518cc4f192a5d119fcb259958348 commit f1267ef5fa3d518cc4f192a5d119fcb259958348 Author: Noah Goldstein Date: Fri Feb 18 17:00:25 2022 -0600 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 (cherry picked from commit b98d0bbf747f39770e0caba7e984ce9f8f900330) Diff: --- sysdeps/x86/tst-strncmp-rtm.c | 4 ++-- 1 file 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 */