summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 24bc858)
raw | patch | inline | side by side (parent: 24bc858)
author | matt <matt.r.portas@gmail.com> | |
Sat, 2 Apr 2011 14:56:36 +0000 (15:56 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Thu, 23 Jun 2011 06:37:19 +0000 (08:37 +0200) |
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:385:25: error: variable ‘connection’ set but not used [-Werror=unused-but-set-variable]
src/main.c | patch | blob | history |
diff --git a/src/main.c b/src/main.c
index fa16de1f46dc0e196059f217b12e725fff6689a5..5b31f41a410dcec78d3cb907e41264cd18addeb3 100644 (file)
--- a/src/main.c
+++ b/src/main.c
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;