aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_lyrics.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-15 13:27:32 +0200
committerMax Kellermann <max@duempel.org>2008-09-15 13:27:32 +0200
commit079548617d3c321dd4051709c3a31717fd80238d (patch)
treeb6bc37563eba2bb6ffcee5ca3d8b8f91b0971251 /src/screen_lyrics.c
parentc67c968442e1b08975d213c9d1947045703348a8 (diff)
downloadmpd-079548617d3c321dd4051709c3a31717fd80238d.tar.gz
mpd-079548617d3c321dd4051709c3a31717fd80238d.tar.xz
mpd-079548617d3c321dd4051709c3a31717fd80238d.zip
fix unused parameter warnings
Add the "unused" attribute to all function parameters which are indeed going to be ignored.
Diffstat (limited to '')
-rw-r--r--src/screen_lyrics.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c
index fb45fd49d..593296948 100644
--- a/src/screen_lyrics.c
+++ b/src/screen_lyrics.c
@@ -31,6 +31,7 @@
#include "easy_download.h"
#include "strfsong.h"
#include "src_lyrics.h"
+#include "gcc.h"
#define _GNU_SOURCE
#include <stdlib.h>
@@ -152,7 +153,7 @@ static gpointer get_lyr(void *c)
}
static const char *
-list_callback(unsigned idx, int *highlight, void *data)
+list_callback(unsigned idx, int *highlight, mpd_unused void *data)
{
static char buf[512];
@@ -205,7 +206,7 @@ lyrics_exit(void)
static const char *
-lyrics_title(char *str, size_t size)
+lyrics_title(mpd_unused char *str, mpd_unused size_t size)
{
static GString *msg;
if (msg == NULL)
@@ -244,7 +245,7 @@ lyrics_title(char *str, size_t size)
}
static void
-lyrics_paint(screen_t *screen, mpdclient_t *c)
+lyrics_paint(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c)
{
lw->clear = 1;
list_window_paint(lw, list_callback, NULL);
@@ -253,7 +254,7 @@ lyrics_paint(screen_t *screen, mpdclient_t *c)
static void
-lyrics_update(screen_t *screen, mpdclient_t *c)
+lyrics_update(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c)
{
if( lw->repaint ) {
list_window_paint(lw, list_callback, NULL);