diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-04-07 18:34:07 +0100 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-04-07 18:34:07 +0100 |
commit | 13ef1266e96335725e4b00cbe84753cfb1d9c52c (patch) | |
tree | 1f06fe28c309b2b5e2f24bc4cf440212c717b9cc /src/audio_out | |
parent | 78689bf5bbd1dbe879d50aa0667db4603230390b (diff) | |
download | xine-lib-13ef1266e96335725e4b00cbe84753cfb1d9c52c.tar.gz xine-lib-13ef1266e96335725e4b00cbe84753cfb1d9c52c.tar.bz2 |
Use CC_ATTRIBUTE_FORMAT; replace __attribute((format(printf, ...))) accordingly.
Diffstat (limited to 'src/audio_out')
-rw-r--r-- | src/audio_out/audio_alsa_out.c | 5 | ||||
-rw-r--r-- | src/audio_out/audio_directx2_out.c | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/audio_out/audio_alsa_out.c b/src/audio_out/audio_alsa_out.c index f176b7594..6ad78da2a 100644 --- a/src/audio_out/audio_alsa_out.c +++ b/src/audio_out/audio_alsa_out.c @@ -265,10 +265,7 @@ static long ao_alsa_get_volume_from_percent(int val, long min, long max) { * Error callback, we need to control this, * error message should be printed only in DEBUG mode. */ -static void -#ifdef __GNUC__ - __attribute__((format (printf, 5, 6))) -#endif +static void XINE_FORMAT_PRINTF(5, 6) error_callback(const char *file, int line, const char *function, int err, const char *fmt, ...) { #ifdef DEBUG diff --git a/src/audio_out/audio_directx2_out.c b/src/audio_out/audio_directx2_out.c index aff4412ec..7161f192d 100644 --- a/src/audio_out/audio_directx2_out.c +++ b/src/audio_out/audio_directx2_out.c @@ -151,10 +151,7 @@ static int buffer_ready(dx2_driver_t *this); /* popup a dialog with error */ -static void -#ifdef __GNUC__ - __attribute__((format (printf, 1, 2))) -#endif +static void XINE_FORMAT_PRINTF(1, 2) error_message(const char *fmt, ...) { char message[256]; va_list ap; |