summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2011-08-29 22:13:44 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2011-08-29 22:13:44 +0530
commit394d8a6b6bb07394009f40fa5ad2834c2ff0e12d (patch)
treefe85125e71503adff926f3cf7399f9b817d8b8bc
parent837ac4c225929ebe2f2a5866b9ccebd74ba587d1 (diff)
echo-cancel: Get rid of annoying compiler warnings
-rw-r--r--src/modules/echo-cancel/module-echo-cancel.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c
index acfbc04f..a30b936e 100644
--- a/src/modules/echo-cancel/module-echo-cancel.c
+++ b/src/modules/echo-cancel/module-echo-cancel.c
@@ -675,6 +675,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;
if (u->sink_skip) {
size_t to_skip;
@@ -706,9 +707,9 @@ static void source_output_push_cb(pa_source_output *o, const pa_memchunk *chunk)
if (u->save_aec) {
if (u->captured_file)
- fwrite(rdata, 1, u->blocksize, u->captured_file);
+ unused = fwrite(rdata, 1, u->blocksize, u->captured_file);
if (u->played_file)
- fwrite(pdata, 1, u->blocksize, u->played_file);
+ unused = fwrite(pdata, 1, u->blocksize, u->played_file);
}
/* perform echo cancellation */
@@ -716,7 +717,7 @@ static void source_output_push_cb(pa_source_output *o, const pa_memchunk *chunk)
if (u->save_aec) {
if (u->canceled_file)
- fwrite(cdata, 1, u->blocksize, u->canceled_file);
+ unused = fwrite(cdata, 1, u->blocksize, u->canceled_file);
}
pa_memblock_release(cchunk.memblock);