aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-09 16:17:43 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-17 16:12:10 -0300
commitfe8a949c64da3f4315692e3c07ddf9b495f51547 (patch)
tree08b4ad2486f2542105d747da2af3b12df57306e1 /nptl
parentdb3ab211d186c521bffa3c3710ee4f8144e8adbe (diff)
downloadglibc-fe8a949c64da3f4315692e3c07ddf9b495f51547.zip
glibc-fe8a949c64da3f4315692e3c07ddf9b495f51547.tar.gz
glibc-fe8a949c64da3f4315692e3c07ddf9b495f51547.tar.bz2
nptl: Fix Wincompatible-pointer-types on clang
Clang issues: error: incompatible pointer types passing 'struct pthread **' to parameter of type 'void **' [-Werror,-Wincompatible-pointer-types]
Diffstat (limited to 'nptl')
-rw-r--r--nptl/pthread_join_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/pthread_join_common.c b/nptl/pthread_join_common.c
index 9c685c7..ff78334 100644
--- a/nptl/pthread_join_common.c
+++ b/nptl/pthread_join_common.c
@@ -29,7 +29,7 @@ cleanup (void *arg)
fail for any reason but the thread not having done that yet so
there is no reason for a loop. */
struct pthread *self = THREAD_SELF;
- atomic_compare_exchange_weak_acquire (&arg, &self, NULL);
+ atomic_compare_exchange_weak_acquire (&arg, (void **) &self, NULL);
}
int