From 740eca5cf2ce908558aac67f6ae7f30946c33202 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Thu, 14 Aug 2008 17:10:41 +0000 Subject: [PATCH] * Fix compile error when MPD support not enabled git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1236 7f574dfc-610e-0410-a909-a81674777703 --- ChangeLog | 3 +++ src/conky.c | 11 +++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index d4e43bac..c023f8da 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ # $Id$ +2008-08-14 + * Fix compile error when MPD support not enabled + 2008-08-05 * Add option to specify number of retries for IMAP/POP3 stuff (via -r) diff --git a/src/conky.c b/src/conky.c index 8d9bde2d..2aa14f95 100644 --- a/src/conky.c +++ b/src/conky.c @@ -2397,6 +2397,7 @@ static void free_text_objects(struct text_object_list *text_object_list, char fu break; } } + if (full) {} // disable warning when MPD !defined free(text_object_list->text_objects); text_object_list->text_objects = NULL; text_object_list->text_object_count = 0; @@ -3742,9 +3743,8 @@ static struct text_object *construct_text_object(const char *s, } else { obj->global_mode = 1; } - END #ifdef SMAPI - OBJ(smapi, 0) + END OBJ(smapi, 0) if (arg) obj->data.s = strndup(arg, text_buffer_size); else @@ -3788,10 +3788,9 @@ static struct text_object *construct_text_object(const char *s, } } else ERR("if_smapi_bat_bar needs an argument"); - END #endif /* SMAPI */ #ifdef MPD - OBJ_THREAD(mpd_artist, INFO_MPD) + END OBJ_THREAD(mpd_artist, INFO_MPD) END OBJ_THREAD(mpd_title, INFO_MPD) if (arg) { sscanf(arg, "%d", &info.mpd.max_title_len); @@ -3818,9 +3817,9 @@ static struct text_object *construct_text_object(const char *s, END OBJ_THREAD(mpd_bar, INFO_MPD) scan_bar(arg, &obj->data.pair.a, &obj->data.pair.b); END OBJ_THREAD(mpd_smart, INFO_MPD) -#endif +#endif /* MPD */ #ifdef XMMS2 - OBJ(xmms2_artist, INFO_XMMS2) + END OBJ(xmms2_artist, INFO_XMMS2) END OBJ(xmms2_album, INFO_XMMS2) END OBJ(xmms2_title, INFO_XMMS2) END OBJ(xmms2_genre, INFO_XMMS2)