[glibc] rt: Fix tst-aio{9,10}.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=7d9be3fa30e6caee30270b12327c305870233e7b commit 7d9be3fa30e6caee30270b12327c305870233e7b Author: Adhemerval Zanella <[email protected]> Date: Tue Aug 11 14:18:25 2026 -0300 rt: Fix tst-aio{9,10}.c on clang-23 clang-23 enables -Wunused-but-set-global by default, which flags variables that are set but never read. Diff: --- 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 ebd0193b3c..fbf5c6b7bf 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 c13d9f7e72..d85a248e7d 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; }