From 9de7519d162230b11fa71903d261acb15c5c3eb8 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Sat, 28 Sep 2013 09:12:01 +0530 Subject: [PATCH] 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. --- src/pulsecore/mutex-posix.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pulsecore/mutex-posix.c b/src/pulsecore/mutex-posix.c index 74c5768a8..36c2787b6 100644 --- a/src/pulsecore/mutex-posix.c +++ b/src/pulsecore/mutex-posix.c @@ -42,7 +42,9 @@ struct pa_cond { pa_mutex* pa_mutex_new(bool recursive, bool inherit_priority) { pa_mutex *m; pthread_mutexattr_t attr; +#ifdef HAVE_PTHREAD_PRIO_INHERIT int r; +#endif pa_assert_se(pthread_mutexattr_init(&attr) == 0);