mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
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:
parent
6f94c56782
commit
9de7519d16
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue