aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-01 18:00:46 +0100
committerMax Kellermann <max@duempel.org>2009-01-01 18:00:46 +0100
commit0734acf392454629502b8b19f0edc865ba064c4c (patch)
tree48546a1c2dc60124875d8ceefbd8ddb2a1ecc9c4 /src/output
parent9a70c4d06d51cca24dfb93847d1f82187d454e31 (diff)
downloadmpd-0734acf392454629502b8b19f0edc865ba064c4c.tar.gz
mpd-0734acf392454629502b8b19f0edc865ba064c4c.tar.xz
mpd-0734acf392454629502b8b19f0edc865ba064c4c.zip
null: don't include gcc.h
Use GLib's G_GNUC_UNUSED instead of macros from gcc.h.
Diffstat (limited to 'src/output')
-rw-r--r--src/output/null_plugin.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/output/null_plugin.c b/src/output/null_plugin.c
index bef2ff924..dd85e6389 100644
--- a/src/output/null_plugin.c
+++ b/src/output/null_plugin.c
@@ -20,13 +20,16 @@
#include "../timer.h"
#include "../utils.h"
+#include <glib.h>
+
struct null_data {
Timer *timer;
};
-static void *null_initDriver(mpd_unused struct audio_output *audioOutput,
- mpd_unused const struct audio_format *audio_format,
- mpd_unused ConfigParam *param)
+static void *
+null_initDriver(G_GNUC_UNUSED struct audio_output *audioOutput,
+ G_GNUC_UNUSED const struct audio_format *audio_format,
+ G_GNUC_UNUSED ConfigParam *param)
{
struct null_data *nd = xmalloc(sizeof(*nd));
nd->timer = NULL;
@@ -53,7 +56,7 @@ static void null_closeDevice(void *data)
}
static bool
-null_playAudio(void *data, mpd_unused const char *playChunk, size_t size)
+null_playAudio(void *data, G_GNUC_UNUSED const char *playChunk, size_t size)
{
struct null_data *nd = data;
Timer *timer = nd->timer;