aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.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/main.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/main.c')
-rw-r--r--src/main.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 7350a50f6..b16cab889 100644
--- a/src/main.c
+++ b/src/main.c
@@ -29,6 +29,7 @@
#include "screen.h"
#include "screen_utils.h"
#include "strfsong.h"
+#include "gcc.h"
#include <stdlib.h>
#include <unistd.h>
@@ -55,12 +56,10 @@ error_msg(const gchar *msg)
}
static void
-error_callback(mpdclient_t *c, gint error, const gchar *msg)
+error_callback(mpd_unused mpdclient_t *c, gint error, const gchar *msg)
{
- gint code = GET_ACK_ERROR_CODE(error);
-
error = error & 0xFF;
- D("Error [%d:%d]> \"%s\"\n", error, code, msg);
+ D("Error [%d:%d]> \"%s\"\n", error, GET_ACK_ERROR_CODE(error), msg);
switch (error) {
case MPD_ERROR_CONNPORT:
case MPD_ERROR_NORESPONSE:
@@ -126,7 +125,7 @@ exit_and_cleanup(void)
}
static void
-catch_sigint( int sig )
+catch_sigint(mpd_unused int sig)
{
printf("\n%s\n", _("Exiting..."));
exit(EXIT_SUCCESS);
@@ -134,7 +133,7 @@ catch_sigint( int sig )
static void
-catch_sigcont( int sig )
+catch_sigcont(mpd_unused int sig)
{
D("catch_sigcont()\n");
#ifdef ENABLE_RAW_MODE