diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-03-09 16:17:43 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-04-17 16:12:10 -0300 |
commit | fe8a949c64da3f4315692e3c07ddf9b495f51547 (patch) | |
tree | 08b4ad2486f2542105d747da2af3b12df57306e1 /nptl | |
parent | db3ab211d186c521bffa3c3710ee4f8144e8adbe (diff) | |
download | glibc-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.c | 2 |
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 |