Code

screen_keydef.c: replaced mpd_unused by G_GNUC_UNUSED
authorThomas Jansen <mithi@mithi.net>
Mon, 24 Nov 2008 02:47:46 +0000 (03:47 +0100)
committerMax Kellermann <max@duempel.org>
Mon, 24 Nov 2008 06:47:38 +0000 (07:47 +0100)
src/screen_keydef.c

index 509a44fc5e929110619e0d186826af579e8215ad..d55d4c0d2999313e7de38e472913410e4ccfdc65 100644 (file)
@@ -23,7 +23,6 @@
 #include "command.h"
 #include "screen.h"
 #include "screen_utils.h"
-#include "gcc.h"
 
 #include <errno.h>
 #include <stdlib.h>
@@ -188,7 +187,7 @@ assign_new_key(WINDOW *w, int cmd_index, int key_index)
 }
 
 static const char *
-list_callback(unsigned idx, int *highlight, mpd_unused void *data)
+list_callback(unsigned idx, int *highlight, G_GNUC_UNUSED void *data)
 {
        static char buf[BUFSIZE];
 
@@ -245,7 +244,7 @@ keydef_exit(void)
 }
 
 static void
-keydef_open(mpd_unused mpdclient_t *c)
+keydef_open(G_GNUC_UNUSED mpdclient_t *c)
 {
        if (cmds == NULL) {
                command_definition_t *current_cmds = get_command_definitions();
@@ -293,7 +292,7 @@ keydef_paint(void)
 }
 
 static bool
-keydef_cmd(mpd_unused mpdclient_t *c, command_t cmd)
+keydef_cmd(G_GNUC_UNUSED mpdclient_t *c, command_t cmd)
 {
        int length = LIST_LENGTH();