From c909270be37026e4877acf556af0556f7d1356c6 Mon Sep 17 00:00:00 2001 From: michael Date: Wed, 2 May 2007 05:10:55 +0000 Subject: some compiler warnings fixed git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@797 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- plugin_mpd.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'plugin_mpd.c') diff --git a/plugin_mpd.c b/plugin_mpd.c index 63e2210..8efd7de 100644 --- a/plugin_mpd.c +++ b/plugin_mpd.c @@ -64,7 +64,12 @@ static struct Pointer connect() char *port = "6600"; int iport; char *test; - struct Pointer mpd; + + struct Pointer mpd = { + .conn = NULL, + .status = NULL, + .entity = NULL + }; if ((test = getenv("MPD_HOST"))) { host = test; @@ -228,7 +233,8 @@ static void album(RESULT * result) #define _mpd_player_get_repeat 004 #define _mpd_player_get_random 005 -void error_callback(MpdObj * mi, int errorid, char *msg, void *userdata) +void error_callback( __attribute__ ((unused)) MpdObj * mi, int errorid, char *msg, __attribute__ ((unused)) + void *userdata) { printf("Error %i: '%s'\n", errorid, msg); } -- cgit v1.2.3