aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-14 23:22:51 +0100
committerMax Kellermann <max@duempel.org>2009-12-14 23:22:51 +0100
commit51d06873770743553924f7de46462bd1724e6ff1 (patch)
tree168c4c02242e3db50d9167943bbfda4b0058bf37
parent849d7895dca3cc86212217fb57ab3d426eff50e7 (diff)
downloadmpd-51d06873770743553924f7de46462bd1724e6ff1.tar.gz
mpd-51d06873770743553924f7de46462bd1724e6ff1.tar.xz
mpd-51d06873770743553924f7de46462bd1724e6ff1.zip
fixed several gcc warnings on unused debug variables
-rw-r--r--src/decoder_api.c2
-rw-r--r--src/inotify_update.c1
-rw-r--r--src/player_thread.c2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c
index 3ccf12a2e..5f0425ce1 100644
--- a/src/decoder_api.c
+++ b/src/decoder_api.c
@@ -355,7 +355,7 @@ enum decoder_command
decoder_tag(G_GNUC_UNUSED struct decoder *decoder, struct input_stream *is,
const struct tag *tag)
{
- const struct decoder_control *dc = decoder->dc;
+ G_GNUC_UNUSED const struct decoder_control *dc = decoder->dc;
enum decoder_command cmd;
assert(dc->state == DECODE_STATE_DECODE);
diff --git a/src/inotify_update.c b/src/inotify_update.c
index 57c815250..53a7ff73c 100644
--- a/src/inotify_update.c
+++ b/src/inotify_update.c
@@ -80,6 +80,7 @@ tree_add_watch_directory(struct watch_directory *directory)
static void
tree_remove_watch_directory(struct watch_directory *directory)
{
+ G_GNUC_UNUSED
bool found = g_tree_remove(inotify_directories,
GINT_TO_POINTER(directory->descriptor));
assert(found);
diff --git a/src/player_thread.c b/src/player_thread.c
index 907d7a92a..83f348d19 100644
--- a/src/player_thread.c
+++ b/src/player_thread.c
@@ -426,7 +426,7 @@ static bool player_seek_decoder(struct player *player)
*/
static void player_process_command(struct player *player)
{
- struct decoder_control *dc = player->dc;
+ G_GNUC_UNUSED struct decoder_control *dc = player->dc;
switch (pc.command) {
case PLAYER_COMMAND_NONE: