Browse Source

Fixed compiler warning with -Wunused-parameter

pull/59/head
matt335672 2 years ago
parent
commit
d2284f11fc
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      src/module-xrdp-sink.c

+ 3
- 0
src/module-xrdp-sink.c View File

@ -88,6 +88,7 @@ PA_MODULE_USAGE(
#define DEFAULT_SINK_NAME "xrdp-sink" #define DEFAULT_SINK_NAME "xrdp-sink"
#define BLOCK_USEC 30000 #define BLOCK_USEC 30000
//#define BLOCK_USEC (PA_USEC_PER_SEC * 2) //#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 */ /* 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) #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; struct userdata *u;
UNUSED_VAR(new_suspend_cause);
pa_assert(s); pa_assert(s);
pa_assert_se(u = s->userdata); pa_assert_se(u = s->userdata);


Loading…
Cancel
Save