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]
This commit is contained in:
Adhemerval Zanella 2022-03-09 16:17:43 -03:00
parent 6e69f27d0d
commit 7a12fe70bc
1 changed files with 1 additions and 1 deletions

View File

@ -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