mutex: Fix compiler warning when priority inheritance is not supported

'r' is unused in the case where prioritiy inheritance is not detected at
configure time.
This commit is contained in:
Arun Raghavan 2013-09-28 09:12:01 +05:30
parent 6f94c56782
commit 9de7519d16

View file

@ -42,7 +42,9 @@ struct pa_cond {
pa_mutex* pa_mutex_new(bool recursive, bool inherit_priority) { pa_mutex* pa_mutex_new(bool recursive, bool inherit_priority) {
pa_mutex *m; pa_mutex *m;
pthread_mutexattr_t attr; pthread_mutexattr_t attr;
#ifdef HAVE_PTHREAD_PRIO_INHERIT
int r; int r;
#endif
pa_assert_se(pthread_mutexattr_init(&attr) == 0); pa_assert_se(pthread_mutexattr_init(&attr) == 0);