The spin_lock wrappers do not use the return value of the functions they
wrap, resulting in dozens of compiler warnings because they are inline
functions. There is no elegant solution to this, I hope using (void)val;
is the least shocking alternative.
{
int val = pthread_spin_lock (&spin->spin);
assert (val == 0);
+ (void)val;
}
/**
{
int val = pthread_spin_unlock (&spin->spin);
assert (val == 0);
+ (void)val;
}
/**
{
int val = pthread_spin_destroy (&spin->spin);
assert (val == 0);
+ (void)val;
}
#elif defined( WIN32 )