Commit cfc98288 authored by sam's avatar sam

Put (void)val; here and there to tell gcc we used the variable.

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.
parent 951c16c7
......@@ -581,6 +581,7 @@ static inline void vlc_spin_lock (vlc_spinlock_t *spin)
{
int val = pthread_spin_lock (&spin->spin);
assert (val == 0);
(void)val;
}
/**
......@@ -590,6 +591,7 @@ static inline void vlc_spin_unlock (vlc_spinlock_t *spin)
{
int val = pthread_spin_unlock (&spin->spin);
assert (val == 0);
(void)val;
}
/**
......@@ -599,6 +601,7 @@ static inline void vlc_spin_destroy (vlc_spinlock_t *spin)
{
int val = pthread_spin_destroy (&spin->spin);
assert (val == 0);
(void)val;
}
#elif defined( WIN32 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment