[glibc] malloc: Fix malloc/tst-mallocfork3.c on clang-23

Adhemerval Zanella via Glibc-cvs <[email protected]>
Newsgroups gmane.comp.lib.glibc.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3cd88a6952a8fd2bf9c7b717f48cb9b44b22404b

commit 3cd88a6952a8fd2bf9c7b717f48cb9b44b22404b
Author: Adhemerval Zanella <[email protected]>
Date:   Tue Aug 11 14:20:39 2026 -0300

    malloc: Fix malloc/tst-mallocfork3.c on clang-23
    
    clang-23 enables -Wunused-but-set-global by default, which flags
    variables that are set but never read.

Diff:
---
 malloc/tst-mallocfork3.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/malloc/tst-mallocfork3.c b/malloc/tst-mallocfork3.c
index 4a46c87fa3..0e18fead04 100644
--- a/malloc/tst-mallocfork3.c
+++ b/malloc/tst-mallocfork3.c
@@ -128,7 +128,6 @@ signal_sender (void *args)
 }
 
 static pthread_t sigusr1_sender[5];
-static pthread_t sigusr2_sender;
 
 static int
 do_test (void)
@@ -139,7 +138,7 @@ do_test (void)
   pthread_t self = pthread_self ();
 
   struct signal_send_args sigusr2_args = { self, SIGUSR2, true };
-  sigusr2_sender = xpthread_create (NULL, signal_sender, &sigusr2_args);
+  xpthread_create (NULL, signal_sender, &sigusr2_args);
 
   /* Send SIGUSR1 signals from several threads.  Hopefully, one
      signal will hit one of the critical functions.  Use a barrier to
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.