[COMMITTED] rt: Fix tst-aio{9,10}.c on clang-23
Adhemerval Zanella
adhemerval.zanella@linaro.org
Wed Aug 12 18:21:36 GMT 2026
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
More information about the Libc-alpha
mailing list