From e8023bb88716ed8fac7ef7fc59e273639132f059 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Sun, 25 Feb 2007 18:02:13 +0000 Subject: Instead of __unused, use __attr_unused, to avoid possible collisions with other libraries. CVS patchset: 8626 CVS date: 2007/02/25 18:02:13 --- src/combined/decoder_wavpack.c | 8 ++++---- src/combined/demux_wavpack.c | 8 ++++---- src/xine-utils/attributes.h | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/combined/decoder_wavpack.c b/src/combined/decoder_wavpack.c index f425c58a9..6b0d035e4 100644 --- a/src/combined/decoder_wavpack.c +++ b/src/combined/decoder_wavpack.c @@ -19,7 +19,7 @@ * * xine interface to libwavpack by Diego Pettenò * - * $Id: decoder_wavpack.c,v 1.11 2007/02/25 17:57:04 dgp85 Exp $ + * $Id: decoder_wavpack.c,v 1.12 2007/02/25 18:02:13 dgp85 Exp $ */ #define LOG_MODULE "decode_wavpack" @@ -119,9 +119,9 @@ static int xine_buffer_can_seek(void *const this_gen) { return 1; } -static int32_t xine_buffer_write_bytes(__unused void *const id, - __unused void *const data, - __unused const int32_t bcount) { +static int32_t xine_buffer_write_bytes(__attr_unused void *const id, + __attr_unused void *const data, + __attr_unused const int32_t bcount) { lprintf("xine_buffer_write_bytes: access is read-only.\n"); return 0; } diff --git a/src/combined/demux_wavpack.c b/src/combined/demux_wavpack.c index 6f5cf68ff..d0dce82a2 100644 --- a/src/combined/demux_wavpack.c +++ b/src/combined/demux_wavpack.c @@ -19,7 +19,7 @@ * * xine interface to libwavpack by Diego Pettenò * - * $Id: demux_wavpack.c,v 1.9 2007/02/25 17:52:16 dgp85 Exp $ + * $Id: demux_wavpack.c,v 1.10 2007/02/25 18:02:13 dgp85 Exp $ */ #define LOG_MODULE "demux_wavpack" @@ -96,9 +96,9 @@ static int xine_input_can_seek(void *const this_gen) { return INPUT_IS_SEEKABLE(this); } -static int32_t xine_input_write_bytes(__unused void *const id, - __unused void *const data, - __unused const int32_t bcount) { +static int32_t xine_input_write_bytes(__attr_unused void *const id, + __attr_unused void *const data, + __attr_unused const int32_t bcount) { lprintf("xine_input_write_bytes: acces is read-only.\n"); return 0; } diff --git a/src/xine-utils/attributes.h b/src/xine-utils/attributes.h index c2936a2a4..0328493aa 100644 --- a/src/xine-utils/attributes.h +++ b/src/xine-utils/attributes.h @@ -59,11 +59,11 @@ # define XINE_SENTINEL #endif -#ifndef __unused +#ifndef __attr_unused # ifdef SUPPORT_ATTRIBUTE_UNUSED -# define __unused __attribute__((unused)) +# define __attr_unused __attribute__((unused)) # else -# define __unused +# define __attr_unused # endif #endif -- cgit v1.2.3