Code

screen_play: fix "unused" warning on NCMPC_MINI
authorMax Kellermann <max@duempel.org>
Mon, 21 Sep 2009 17:58:05 +0000 (19:58 +0200)
committerMax Kellermann <max@duempel.org>
Mon, 21 Sep 2009 17:58:05 +0000 (19:58 +0200)
format_duration() is not used.

src/screen_play.c

index 5c17f51b2d0ea509ed9678c5d31b288607d1505b..e1389b836f23939d987fcaf1d73bc4d696a3d437 100644 (file)
@@ -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)