From 0c4bd923b1373a175ce15f6f15f08e9145ce6ad6 Mon Sep 17 00:00:00 2001 From: matt Date: Sat, 2 Apr 2011 15:56:36 +0100 Subject: [PATCH] main.c: fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit src/main.c: In function ‘idle_callback’: src/main.c:385:25: error: variable ‘connection’ set but not used [-Werror=unused-but-set-variable] --- src/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index fa16de1..5b31f41 100644 --- a/src/main.c +++ b/src/main.c @@ -382,12 +382,10 @@ idle_callback(enum mpd_error error, enum mpd_server_error server_error, void *ctx) { struct mpdclient *c = ctx; - struct mpd_connection *connection; c->idle = false; - connection = mpdclient_get_connection(c); - assert(connection != NULL); + assert(mpdclient_get_connection(c) != NULL); if (error != MPD_ERROR_SUCCESS) { char *allocated; -- 2.30.2