[pulseaudio-commits] src/pulsecore

Arun Raghavan arun at kemper.freedesktop.org
Fri Sep 27 20:46:23 PDT 2013


 src/pulsecore/mutex-posix.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 9de7519d162230b11fa71903d261acb15c5c3eb8
Author: Arun Raghavan <arun.raghavan at collabora.co.uk>
Date:   Sat Sep 28 09:12:01 2013 +0530

    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.

diff --git a/src/pulsecore/mutex-posix.c b/src/pulsecore/mutex-posix.c
index 74c5768..36c2787 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);
 



More information about the pulseaudio-commits mailing list