[pulseaudio-discuss] [PATCH 5/8] Squash unused variable compiler warning
Maarten Bosmans
mkbosmans at gmail.com
Wed Nov 2 13:54:14 PDT 2011
---
src/modules/echo-cancel/module-echo-cancel.c | 7 ++++---
src/modules/module-equalizer-sink.c | 4 ++--
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c
index 9b69f82..d15c9f3 100644
--- a/src/modules/echo-cancel/module-echo-cancel.c
+++ b/src/modules/echo-cancel/module-echo-cancel.c
@@ -670,7 +670,7 @@ static void do_push_drift_comp(struct userdata *u) {
pa_memchunk rchunk, pchunk, cchunk;
uint8_t *rdata, *pdata, *cdata;
float drift;
- int unused;
+ int unused PA_GCC_UNUSED;
rlen = pa_memblockq_get_length(u->source_memblockq);
plen = pa_memblockq_get_length(u->sink_memblockq);
@@ -762,7 +762,7 @@ static void do_push(struct userdata *u) {
size_t rlen, plen;
pa_memchunk rchunk, pchunk, cchunk;
uint8_t *rdata, *pdata, *cdata;
- int unused;
+ int unused PA_GCC_UNUSED;
rlen = pa_memblockq_get_length(u->source_memblockq);
plen = pa_memblockq_get_length(u->sink_memblockq);
@@ -1944,7 +1944,8 @@ int main(int argc, char* argv[]) {
pa_channel_map source_map, sink_map;
pa_modargs *ma = NULL;
uint8_t *rdata = NULL, *pdata = NULL, *cdata = NULL;
- int ret = 0, unused, i;
+ int unused PA_GCC_UNUSED;
+ int ret = 0, i;
char c;
float drift;
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