From d2284f11fcf0c7689b2b324063bf5725f5848cc8 Mon Sep 17 00:00:00 2001 From: matt335672 <30179339+matt335672@users.noreply.github.com> Date: Sat, 30 Oct 2021 12:26:52 +0100 Subject: [PATCH] Fixed compiler warning with -Wunused-parameter --- src/module-xrdp-sink.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/module-xrdp-sink.c b/src/module-xrdp-sink.c index 9fe8efe..fa3817d 100644 --- a/src/module-xrdp-sink.c +++ b/src/module-xrdp-sink.c @@ -88,6 +88,7 @@ PA_MODULE_USAGE( #define DEFAULT_SINK_NAME "xrdp-sink" #define BLOCK_USEC 30000 //#define BLOCK_USEC (PA_USEC_PER_SEC * 2) +#define UNUSED_VAR(x) ((void) (x)) /* support for the set_state_in_io_thread callback was added in 11.99.1 */ #if defined(PA_CHECK_VERSION) && PA_CHECK_VERSION(11, 99, 1) @@ -187,6 +188,8 @@ static int sink_set_state_in_io_thread_cb(pa_sink *s, { struct userdata *u; + UNUSED_VAR(new_suspend_cause); + pa_assert(s); pa_assert_se(u = s->userdata);