]> code.delx.au - pulseaudio/commitdiff
mutex: Fix compiler warning when priority inheritance is not supported
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Sat, 28 Sep 2013 03:42:01 +0000 (09:12 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Sat, 28 Sep 2013 03:44:54 +0000 (09:14 +0530)
'r' is unused in the case where prioritiy inheritance is not detected at
configure time.

src/pulsecore/mutex-posix.c

index 74c5768a830e8f935dfba8ab477c75351634d90d..36c2787b6c99828dca76a605090244112f8d4fa8 100644 (file)
@@ -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);