aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_help.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_help.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_help.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/screen_help.c b/src/screen_help.c
index 681bc6cfe..d225b3d6d 100644
--- a/src/screen_help.c
+++ b/src/screen_help.c
@@ -24,6 +24,7 @@
#include "command.h"
#include "screen.h"
#include "screen_utils.h"
+#include "gcc.h"
#include <stdlib.h>
#include <string.h>
@@ -147,7 +148,7 @@ static list_window_t *lw = NULL;
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];
@@ -212,13 +213,13 @@ help_exit(void)
static const char *
-help_title(char *str, size_t size)
+help_title(mpd_unused char *str, mpd_unused size_t size)
{
return _("Help");
}
static void
-help_paint(screen_t *screen, mpdclient_t *c)
+help_paint(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c)
{
lw->clear = 1;
list_window_paint(lw, list_callback, NULL);
@@ -226,7 +227,7 @@ help_paint(screen_t *screen, mpdclient_t *c)
}
static void
-help_update(screen_t *screen, mpdclient_t *c)
+help_update(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c)
{
if (lw->repaint) {
list_window_paint(lw, list_callback, NULL);
@@ -237,7 +238,7 @@ help_update(screen_t *screen, mpdclient_t *c)
static int
-help_cmd(screen_t *screen, mpdclient_t *c, command_t cmd)
+help_cmd(screen_t *screen, mpd_unused mpdclient_t *c, command_t cmd)
{
lw->repaint=1;
lw->clear=1;