From 4eaa8aebd942d4cd56aadbeebeedd9bd070584ba Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 21 Sep 2009 19:58:05 +0200 Subject: [PATCH] screen_play: fix "unused" warning on NCMPC_MINI format_duration() is not used. --- src/screen_play.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.30.2