[COMMITTED] rt: Fix tst-aio{9,10}.c on clang-23

Adhemerval Zanella <[email protected]>
Newsgroups gmane.comp.lib.glibc.alpha
Message-ID <[email protected]>
clang-23 enables -Wunused-but-set-global by default, which flags
variables that are set but never read.
---
 rt/tst-aio10.c | 2 --
 rt/tst-aio9.c  | 2 --
 2 files changed, 4 deletions(-)

diff --git a/rt/tst-aio10.c b/rt/tst-aio10.c
index ebd0193b3c6..fbf5c6b7bfe 100644
--- a/rt/tst-aio10.c
+++ b/rt/tst-aio10.c
@@ -8,7 +8,6 @@
 
 static pthread_barrier_t b;
 static pthread_t main_thread;
-static int flag;
 
 
 static void *
@@ -38,7 +37,6 @@ tf (void *arg)
 static void
 sh (int sig)
 {
-  flag = 1;
 }
 
 
diff --git a/rt/tst-aio9.c b/rt/tst-aio9.c
index c13d9f7e727..d85a248e7dc 100644
--- a/rt/tst-aio9.c
+++ b/rt/tst-aio9.c
@@ -8,7 +8,6 @@
 
 static pthread_barrier_t b;
 static pthread_t main_thread;
-static int flag;
 
 
 static void *
@@ -38,7 +37,6 @@ tf (void *arg)
 static void
 sh (int sig)
 {
-  flag = 1;
 }
 
 
-- 
2.53.0
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.