From 5ba2981feb82201c11561651075eb45053b54414 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Fri, 17 Jan 2014 15:00:45 +0200 Subject: [PATCH] festival: fix a few unused variable warnings. --- src/plugins/text-to-speech/festival/pulse.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/plugins/text-to-speech/festival/pulse.c b/src/plugins/text-to-speech/festival/pulse.c index 48070ee..bf17998 100644 --- a/src/plugins/text-to-speech/festival/pulse.c +++ b/src/plugins/text-to-speech/festival/pulse.c @@ -146,7 +146,6 @@ uint32_t pulse_play_stream(festival_t *f, void *sample_buf, int sample_rate, pa_buffer_attr ba; pa_proplist *props; size_t pamin, pabuf; - uint32_t min, tgt, id; int flags; if ((s = mrp_allocz(sizeof(*s))) == NULL) @@ -351,6 +350,13 @@ static void context_event_cb(pa_context *pc, pa_subscription_event_type_t e, { pulse_t *p = (pulse_t *)user_data; + MRP_UNUSED(pc); + MRP_UNUSED(e); + MRP_UNUSED(idx); + MRP_UNUSED(user_data); + + MRP_UNUSED(p); + return; } @@ -359,7 +365,6 @@ static void stream_notify(stream_t *s, srs_voice_event_type_t event) { int mask = (1 << event); srs_voice_event_t e; - uint32_t id; if (s->cb == NULL || !(s->event_mask & mask)) return; -- 2.7.4