aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/flac_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-01 18:09:24 +0100
committerMax Kellermann <max@duempel.org>2009-01-01 18:09:24 +0100
commit17bdcc8bae5af513b9b2902e90dfad4d7a0e7dfc (patch)
tree6cb5495417da4bf2ee80255443a3df8ba16e63a8 /src/decoder/flac_plugin.c
parent7dfe301b54c36ccd934246e81bde6b73e241f858 (diff)
downloadmpd-17bdcc8bae5af513b9b2902e90dfad4d7a0e7dfc.tar.gz
mpd-17bdcc8bae5af513b9b2902e90dfad4d7a0e7dfc.tar.xz
mpd-17bdcc8bae5af513b9b2902e90dfad4d7a0e7dfc.zip
decoder plugins: don't include gcc.h
Use GLib's G_GNUC_UNUSED instead of gcc.h's mpd_unused.
Diffstat (limited to '')
-rw-r--r--src/decoder/flac_plugin.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/decoder/flac_plugin.c b/src/decoder/flac_plugin.c
index ea5cc6320..089d4185c 100644
--- a/src/decoder/flac_plugin.c
+++ b/src/decoder/flac_plugin.c
@@ -18,12 +18,14 @@
#include "_flac_common.h"
+#include <glib.h>
+
#include <assert.h>
#include <unistd.h>
/* this code was based on flac123, from flac-tools */
-static flac_read_status flacRead(mpd_unused const flac_decoder * flacDec,
+static flac_read_status flacRead(G_GNUC_UNUSED const flac_decoder * flacDec,
FLAC__byte buf[],
flac_read_status_size_t *bytes,
void *fdata)
@@ -45,7 +47,7 @@ static flac_read_status flacRead(mpd_unused const flac_decoder * flacDec,
return flac_read_status_continue;
}
-static flac_seek_status flacSeek(mpd_unused const flac_decoder * flacDec,
+static flac_seek_status flacSeek(G_GNUC_UNUSED const flac_decoder * flacDec,
FLAC__uint64 offset,
void *fdata)
{
@@ -57,7 +59,7 @@ static flac_seek_status flacSeek(mpd_unused const flac_decoder * flacDec,
return flac_seek_status_ok;
}
-static flac_tell_status flacTell(mpd_unused const flac_decoder * flacDec,
+static flac_tell_status flacTell(G_GNUC_UNUSED const flac_decoder * flacDec,
FLAC__uint64 * offset,
void *fdata)
{
@@ -68,7 +70,7 @@ static flac_tell_status flacTell(mpd_unused const flac_decoder * flacDec,
return flac_tell_status_ok;
}
-static flac_length_status flacLength(mpd_unused const flac_decoder * flacDec,
+static flac_length_status flacLength(G_GNUC_UNUSED const flac_decoder * flacDec,
FLAC__uint64 * length,
void *fdata)
{
@@ -82,7 +84,7 @@ static flac_length_status flacLength(mpd_unused const flac_decoder * flacDec,
return flac_length_status_ok;
}
-static FLAC__bool flacEOF(mpd_unused const flac_decoder * flacDec, void *fdata)
+static FLAC__bool flacEOF(G_GNUC_UNUSED const flac_decoder * flacDec, void *fdata)
{
FlacData *data = (FlacData *) fdata;
@@ -91,7 +93,7 @@ static FLAC__bool flacEOF(mpd_unused const flac_decoder * flacDec, void *fdata)
input_stream_eof(data->inStream);
}
-static void flacError(mpd_unused const flac_decoder *dec,
+static void flacError(G_GNUC_UNUSED const flac_decoder *dec,
FLAC__StreamDecoderErrorStatus status, void *fdata)
{
flac_error_common_cb("flac", status, (FlacData *) fdata);
@@ -191,7 +193,7 @@ static void flacPrintErroredState(FLAC__StreamDecoderState state)
}
#endif /* FLAC_API_VERSION_CURRENT >= 7 */
-static void flacMetadata(mpd_unused const flac_decoder * dec,
+static void flacMetadata(G_GNUC_UNUSED const flac_decoder * dec,
const FLAC__StreamMetadata * block, void *vdata)
{
flac_metadata_common_cb(block, (FlacData *) vdata);