From 85b77b81caa40f8bcd03921380246cb5863d5d21 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Aug 2013 23:48:01 +0200 Subject: *: use gcc.h macros instead of GLib --- test/read_tags.cxx | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'test/read_tags.cxx') diff --git a/test/read_tags.cxx b/test/read_tags.cxx index 420cf9f0e..5880662de 100644 --- a/test/read_tags.cxx +++ b/test/read_tags.cxx @@ -39,34 +39,34 @@ #endif void -decoder_initialized(G_GNUC_UNUSED struct decoder *decoder, - G_GNUC_UNUSED const AudioFormat audio_format, - G_GNUC_UNUSED bool seekable, - G_GNUC_UNUSED float total_time) +decoder_initialized(gcc_unused struct decoder *decoder, + gcc_unused const AudioFormat audio_format, + gcc_unused bool seekable, + gcc_unused float total_time) { } enum decoder_command -decoder_get_command(G_GNUC_UNUSED struct decoder *decoder) +decoder_get_command(gcc_unused struct decoder *decoder) { return DECODE_COMMAND_NONE; } -void decoder_command_finished(G_GNUC_UNUSED struct decoder *decoder) +void decoder_command_finished(gcc_unused struct decoder *decoder) { } -double decoder_seek_where(G_GNUC_UNUSED struct decoder *decoder) +double decoder_seek_where(gcc_unused struct decoder *decoder) { return 1.0; } -void decoder_seek_error(G_GNUC_UNUSED struct decoder *decoder) +void decoder_seek_error(gcc_unused struct decoder *decoder) { } size_t -decoder_read(G_GNUC_UNUSED struct decoder *decoder, +decoder_read(gcc_unused struct decoder *decoder, struct input_stream *is, void *buffer, size_t length) { @@ -74,37 +74,37 @@ decoder_read(G_GNUC_UNUSED struct decoder *decoder, } void -decoder_timestamp(G_GNUC_UNUSED struct decoder *decoder, - G_GNUC_UNUSED double t) +decoder_timestamp(gcc_unused struct decoder *decoder, + gcc_unused double t) { } enum decoder_command -decoder_data(G_GNUC_UNUSED struct decoder *decoder, - G_GNUC_UNUSED struct input_stream *is, +decoder_data(gcc_unused struct decoder *decoder, + gcc_unused struct input_stream *is, const void *data, size_t datalen, - G_GNUC_UNUSED uint16_t bit_rate) + gcc_unused uint16_t bit_rate) { - G_GNUC_UNUSED ssize_t nbytes = write(1, data, datalen); + gcc_unused ssize_t nbytes = write(1, data, datalen); return DECODE_COMMAND_NONE; } enum decoder_command -decoder_tag(G_GNUC_UNUSED struct decoder *decoder, - G_GNUC_UNUSED struct input_stream *is, - G_GNUC_UNUSED Tag &&tag) +decoder_tag(gcc_unused struct decoder *decoder, + gcc_unused struct input_stream *is, + gcc_unused Tag &&tag) { return DECODE_COMMAND_NONE; } void -decoder_replay_gain(G_GNUC_UNUSED struct decoder *decoder, - G_GNUC_UNUSED const struct replay_gain_info *replay_gain_info) +decoder_replay_gain(gcc_unused struct decoder *decoder, + gcc_unused const struct replay_gain_info *replay_gain_info) { } void -decoder_mixramp(G_GNUC_UNUSED struct decoder *decoder, +decoder_mixramp(gcc_unused struct decoder *decoder, char *mixramp_start, char *mixramp_end) { g_free(mixramp_start); @@ -114,20 +114,20 @@ decoder_mixramp(G_GNUC_UNUSED struct decoder *decoder, static bool empty = true; static void -print_duration(unsigned seconds, G_GNUC_UNUSED void *ctx) +print_duration(unsigned seconds, gcc_unused void *ctx) { g_print("duration=%d\n", seconds); } static void -print_tag(enum tag_type type, const char *value, G_GNUC_UNUSED void *ctx) +print_tag(enum tag_type type, const char *value, gcc_unused void *ctx) { g_print("[%s]=%s\n", tag_item_names[type], value); empty = false; } static void -print_pair(const char *name, const char *value, G_GNUC_UNUSED void *ctx) +print_pair(const char *name, const char *value, gcc_unused void *ctx) { g_print("\"%s\"=%s\n", name, value); } -- cgit v1.2.3