[pulseaudio-discuss] [PATCH 2/4] Squash unused variable compiler warning
Maarten Bosmans
mkbosmans at gmail.com
Wed Oct 5 05:33:40 PDT 2011
---
src/modules/echo-cancel/module-echo-cancel.c | 2 +-
src/modules/module-equalizer-sink.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c
index c2db87e..665e52e 100644
--- a/src/modules/echo-cancel/module-echo-cancel.c
+++ b/src/modules/echo-cancel/module-echo-cancel.c
@@ -677,7 +677,7 @@ static void source_output_push_cb(pa_source_output *o, const pa_memchunk *chunk)
if (plen > u->blocksize && u->source_skip == 0) {
uint8_t *rdata, *pdata, *cdata;
pa_memchunk cchunk;
- int unused;
+ int unused PA_GCC_UNUSED;
if (u->sink_skip) {
size_t to_skip;
diff --git a/src/modules/module-equalizer-sink.c b/src/modules/module-equalizer-sink.c
index 46bd0d7..e83a41d 100644
--- a/src/modules/module-equalizer-sink.c
+++ b/src/modules/module-equalizer-sink.c
@@ -1081,7 +1081,7 @@ int pa__init(pa_module*m) {
pa_sink *master;
pa_sink_input_new_data sink_input_data;
pa_sink_new_data sink_data;
- size_t fs, i;
+ size_t i;
unsigned c;
float *H;
unsigned a_i;
@@ -1107,7 +1107,7 @@ int pa__init(pa_module*m) {
goto fail;
}
- fs = pa_frame_size(&ss);
+ //fs = pa_frame_size(&ss);
if (pa_modargs_get_value_boolean(ma, "use_volume_sharing", &use_volume_sharing) < 0) {
pa_log("use_volume_sharing= expects a boolean argument");
--
1.7.4.1
More information about the pulseaudio-discuss
mailing list