From: Max Kellermann Date: Mon, 21 Sep 2009 17:58:05 +0000 (+0200) Subject: screen_play: fix "unused" warning on NCMPC_MINI X-Git-Tag: release-0.15~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4eaa8aebd942d4cd56aadbeebeedd9bd070584ba;p=ncmpc.git screen_play: fix "unused" warning on NCMPC_MINI format_duration() is not used. --- diff --git a/src/screen_play.c b/src/screen_play.c index 5c17f51..e1389b8 100644 --- a/src/screen_play.c +++ b/src/screen_play.c @@ -96,6 +96,7 @@ playlist_changed_callback(mpdclient_t *c, int event, gpointer data) playlist_repaint_if_active(); } +#ifndef NCMPC_MINI static char * format_duration(int duration) { @@ -104,6 +105,7 @@ format_duration(int duration) return g_strdup_printf("%d:%02d", duration / 60, duration % 60); } +#endif static const char * list_callback(unsigned idx, bool *highlight, char **second_column, G_GNUC_UNUSED void *data)