diff --git a/src/screen_artist.c b/src/screen_artist.c
index 01fbc9c1fbc35184f6d0ff5200446ff19bbfb711..7180c38edd39f2d8fee3b6e7dc47c38a4cc56d0f 100644 (file)
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
#include "screen.h"
#include "screen_utils.h"
#include "screen_browser.h"
-#include "gcc.h"
#include <ctype.h>
#include <stdlib.h>
/* list_window callback */
static const char *
-artist_lw_callback(unsigned idx, mpd_unused int *highlight, mpd_unused void *data)
+artist_lw_callback(unsigned idx, G_GNUC_UNUSED int *highlight,
+ G_GNUC_UNUSED void *data)
{
GPtrArray *list = data;
static char buf[BUFSIZE];
artist_repaint();
}
+#ifndef NCMPC_MINI
/* the playlist have been updated -> fix highlights */
static void
playlist_changed_callback(mpdclient_t *c, int event, gpointer data)
artist_repaint_if_active();
}
+#endif
static GPtrArray *
g_list_to_ptr_array(GList *in)
}
static void
-free_lists(struct mpdclient *c)
+free_lists(G_GNUC_UNUSED struct mpdclient *c)
{
if (artist_list != NULL) {
string_array_free(artist_list);
}
if (browser.filelist) {
+#ifndef NCMPC_MINI
if (c != NULL)
mpdclient_remove_playlist_callback(c, playlist_changed_callback);
+#endif
filelist_free(browser.filelist);
browser.filelist = NULL;
}
/* add a dummy entry for ".." */
filelist_prepend(browser.filelist, NULL);
+#ifndef NCMPC_MINI
/* install playlist callback and fix highlights */
sync_highlights(c, browser.filelist);
mpdclient_install_playlist_callback(c, playlist_changed_callback);
+#endif
}
static void
/* db updated */
static void
-browse_callback(mpdclient_t *c, int event, mpd_unused gpointer data)
+browse_callback(mpdclient_t *c, int event, G_GNUC_UNUSED gpointer data)
{
switch(event) {
case BROWSE_DB_UPDATED:
/* continue and update... */
case CMD_SCREEN_UPDATE:
reload_lists(c);
- screen_status_printf(_("Screen updated!"));
return false;
case CMD_LIST_FIND: