aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-09-16 07:41:07 +0200
committerMax Kellermann <max@duempel.org>2011-09-16 07:41:41 +0200
commit1cbba4fc592654dc3a2a1fe337ed699d6a102b09 (patch)
treeb090cbe341d584cb447ec7a20f0d554b2b23a4f5 /src
parent344b6dd179d1312cf370f1fbdcddc11370c52f73 (diff)
downloadmpd-1cbba4fc592654dc3a2a1fe337ed699d6a102b09.tar.gz
mpd-1cbba4fc592654dc3a2a1fe337ed699d6a102b09.tar.xz
mpd-1cbba4fc592654dc3a2a1fe337ed699d6a102b09.zip
input/curl, output/pulse: fix "unused local variable" warnings
Diffstat (limited to 'src')
-rw-r--r--src/input/curl_input_plugin.c2
-rw-r--r--src/output/pulse_output_plugin.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/input/curl_input_plugin.c b/src/input/curl_input_plugin.c
index 2c4ac2ff8..604965dd1 100644
--- a/src/input/curl_input_plugin.c
+++ b/src/input/curl_input_plugin.c
@@ -177,7 +177,7 @@ buffer_free_callback(gpointer data, G_GNUC_UNUSED gpointer user_data)
assert(buffer->consumed <= buffer->size);
- g_free(data);
+ g_free(buffer);
}
/**
diff --git a/src/output/pulse_output_plugin.c b/src/output/pulse_output_plugin.c
index 34d736546..911835e46 100644
--- a/src/output/pulse_output_plugin.c
+++ b/src/output/pulse_output_plugin.c
@@ -72,7 +72,8 @@ pulse_output_set_mixer(struct pulse_output *po, struct pulse_mixer *pm)
}
void
-pulse_output_clear_mixer(struct pulse_output *po, struct pulse_mixer *pm)
+pulse_output_clear_mixer(struct pulse_output *po,
+ G_GNUC_UNUSED struct pulse_mixer *pm)
{
assert(po != NULL);
assert(pm != NULL);