aboutsummaryrefslogtreecommitdiff
path: root/tests/pa-mock.cpp
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-02-18 00:35:47 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-02-18 08:25:19 +0100
commite112ae970b0719de8158fdc1deb281e2ee098390 (patch)
treed2b0ebe43f0857e771d55d245c46588938237384 /tests/pa-mock.cpp
parent412bb6e3c6de84096722ca93be7c36733f0c189b (diff)
downloadayatana-indicator-sound-e112ae970b0719de8158fdc1deb281e2ee098390.tar.gz
ayatana-indicator-sound-e112ae970b0719de8158fdc1deb281e2ee098390.tar.bz2
ayatana-indicator-sound-e112ae970b0719de8158fdc1deb281e2ee098390.zip
Fix build warnings
Diffstat (limited to 'tests/pa-mock.cpp')
-rw-r--r--tests/pa-mock.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/pa-mock.cpp b/tests/pa-mock.cpp
index 50e5f28..bb11b86 100644
--- a/tests/pa-mock.cpp
+++ b/tests/pa-mock.cpp
@@ -1,5 +1,6 @@
/*
* Copyright 2015 Canonical Ltd.
+ * Copyright 2022 Robert Tari
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -15,6 +16,7 @@
*
* Authors:
* Ted Gould <ted@canonical.com>
+ * Robert Tari <robert@tari.in>
*/
#include <atomic>
@@ -237,7 +239,7 @@ pa_operation*
pa_context_get_sink_info_by_name (pa_context *c, const gchar * name, pa_sink_info_cb_t cb, void *userdata)
{
reinterpret_cast<PAMockContext*>(c)->idleOnce(
- [c, name, cb, userdata]() {
+ [c, cb, userdata]() {
if (cb == nullptr)
return;
@@ -268,7 +270,7 @@ pa_operation *
pa_context_get_sink_input_info (pa_context *c, uint32_t idx, pa_sink_input_info_cb_t cb, void * userdata)
{
reinterpret_cast<PAMockContext*>(c)->idleOnce(
- [c, idx, cb, userdata]() {
+ [c, cb, userdata]() {
if (cb == nullptr)
return;
@@ -284,7 +286,7 @@ pa_operation*
pa_context_get_source_info_by_name (pa_context *c, const char * name, pa_source_info_cb_t cb, void *userdata)
{
reinterpret_cast<PAMockContext*>(c)->idleOnce(
- [c, name, cb, userdata]() {
+ [c, cb, userdata]() {
if (cb == nullptr)
return;
@@ -302,7 +304,7 @@ pa_operation*
pa_context_get_source_output_info (pa_context *c, uint32_t idx, pa_source_output_info_cb_t cb, void *userdata)
{
reinterpret_cast<PAMockContext*>(c)->idleOnce(
- [c, idx, cb, userdata]() {
+ [c, cb, userdata]() {
if (cb == nullptr)
return;
@@ -319,7 +321,7 @@ pa_operation*
pa_context_set_sink_mute_by_index (pa_context *c, uint32_t idx, int mute, pa_context_success_cb_t cb, void *userdata)
{
reinterpret_cast<PAMockContext*>(c)->idleOnce(
- [c, idx, mute, cb, userdata]() {
+ [c, cb, userdata]() {
if (cb != nullptr)
cb(c, 1, userdata);
});
@@ -331,7 +333,7 @@ pa_operation*
pa_context_set_sink_volume_by_index (pa_context *c, uint32_t idx, const pa_cvolume * cvol, pa_context_success_cb_t cb, void *userdata)
{
reinterpret_cast<PAMockContext*>(c)->idleOnce(
- [c, idx, cvol, cb, userdata]() {
+ [c, cb, userdata]() {
if (cb != nullptr)
cb(c, 1, userdata);
});
@@ -343,7 +345,7 @@ pa_operation*
pa_context_set_source_volume_by_name (pa_context *c, const char * name, const pa_cvolume * cvol, pa_context_success_cb_t cb, void *userdata)
{
reinterpret_cast<PAMockContext*>(c)->idleOnce(
- [c, name, cvol, cb, userdata]() {
+ [c, cb, userdata]() {
if (cb != nullptr)
cb(c, 1, userdata);
});