diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2006-04-21 23:15:44 +0000 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2006-04-21 23:15:44 +0000 |
commit | 65d46d7e0123cf42b5c98f633bd41c90acaa180d (patch) | |
tree | 0912efb8d0496428f015fdc8de81db135e44e65d /src/audio_out/audio_alsa_out.c | |
parent | c707fe990cb23300de76b7a5728a543105283ddb (diff) | |
download | xine-lib-65d46d7e0123cf42b5c98f633bd41c90acaa180d.tar.gz xine-lib-65d46d7e0123cf42b5c98f633bd41c90acaa180d.tar.bz2 |
Add printf format attributes.
CVS patchset: 7977
CVS date: 2006/04/21 23:15:44
Diffstat (limited to 'src/audio_out/audio_alsa_out.c')
-rw-r--r-- | src/audio_out/audio_alsa_out.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/audio_out/audio_alsa_out.c b/src/audio_out/audio_alsa_out.c index 837e824d4..51dcdf59b 100644 --- a/src/audio_out/audio_alsa_out.c +++ b/src/audio_out/audio_alsa_out.c @@ -26,7 +26,7 @@ * (c) 2001 James Courtier-Dutton <James@superbug.demon.co.uk> * * - * $Id: audio_alsa_out.c,v 1.158 2006/01/27 07:46:09 tmattern Exp $ + * $Id: audio_alsa_out.c,v 1.159 2006/04/21 23:15:44 dsalt Exp $ */ #ifdef HAVE_CONFIG_H @@ -272,7 +272,11 @@ 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 error_callback(const char *file, int line, +static void +#ifdef __GNUC__ + __attribute__((format (printf, 5, 6))) +#endif + error_callback(const char *file, int line, const char *function, int err, const char *fmt, ...) { #ifdef DEBUG va_list args; |