From: matt Date: Sat, 2 Apr 2011 14:56:36 +0000 (+0100) Subject: main.c: fix compiler warning X-Git-Tag: release-0.19~18 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0c4bd923b1373a175ce15f6f15f08e9145ce6ad6;p=ncmpc.git main.c: fix compiler warning src/main.c: In function ‘idle_callback’: src/main.c:385:25: error: variable ‘connection’ set but not used [-Werror=unused-but-set-variable] --- 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;