aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_clock.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_clock.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 'src/screen_clock.c')
-rw-r--r--src/screen_clock.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/screen_clock.c b/src/screen_clock.c
index a92953262..995be6792 100644
--- a/src/screen_clock.c
+++ b/src/screen_clock.c
@@ -14,6 +14,7 @@
#include "command.h"
#include "screen.h"
#include "screen_utils.h"
+#include "gcc.h"
#include <time.h>
#include <stdlib.h>
@@ -133,7 +134,7 @@ clock_exit(void)
}
static void
-clock_open(screen_t *screen, mpdclient_t *c)
+clock_open(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c)
{
int j;
@@ -148,13 +149,13 @@ clock_close(void)
}
static const char *
-clock_title(char *str, size_t size)
+clock_title(mpd_unused char *str, mpd_unused size_t size)
{
return _("Clock");
}
static void
-clock_update(screen_t *screen, mpdclient_t *c)
+clock_update(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c)
{
time_t now;
struct tm *tm;
@@ -234,7 +235,8 @@ clock_paint(screen_t *screen, mpdclient_t *c)
}
static int
-clock_cmd(screen_t *screen, mpdclient_t *c, command_t cmd)
+clock_cmd(mpd_unused screen_t *screen, mpd_unused mpdclient_t *c,
+ mpd_unused command_t cmd)
{
return 0;
}