From cd0d003197d0abd572edcc3cbef532a5e3cfc395 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 30 Jan 2013 21:40:53 +0100 Subject: filter/chain, encoder: GLib include cleanup --- src/encoder/null_encoder.c | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'src/encoder/null_encoder.c') diff --git a/src/encoder/null_encoder.c b/src/encoder/null_encoder.c index fa1a0a034..b973adf76 100644 --- a/src/encoder/null_encoder.c +++ b/src/encoder/null_encoder.c @@ -22,6 +22,9 @@ #include "encoder_plugin.h" #include "util/fifo_buffer.h" #include "util/growing_fifo.h" +#include "gcc.h" + +#include #include #include @@ -34,15 +37,9 @@ struct null_encoder { extern const struct encoder_plugin null_encoder_plugin; -static inline GQuark -null_encoder_quark(void) -{ - return g_quark_from_static_string("null_encoder"); -} - static struct encoder * -null_encoder_init(G_GNUC_UNUSED const struct config_param *param, - G_GNUC_UNUSED GError **error) +null_encoder_init(gcc_unused const struct config_param *param, + gcc_unused GError **error) { struct null_encoder *encoder; @@ -71,8 +68,8 @@ null_encoder_close(struct encoder *_encoder) static bool null_encoder_open(struct encoder *_encoder, - G_GNUC_UNUSED struct audio_format *audio_format, - G_GNUC_UNUSED GError **error) + gcc_unused struct audio_format *audio_format, + gcc_unused GError **error) { struct null_encoder *encoder = (struct null_encoder *)_encoder; @@ -83,7 +80,7 @@ null_encoder_open(struct encoder *_encoder, static bool null_encoder_write(struct encoder *_encoder, const void *data, size_t length, - G_GNUC_UNUSED GError **error) + gcc_unused GError **error) { struct null_encoder *encoder = (struct null_encoder *)_encoder; -- cgit v1.2.3