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 | |
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')
-rw-r--r-- | src/audio_out/audio_alsa_out.c | 8 | ||||
-rw-r--r-- | src/audio_out/audio_directx2_out.c | 8 |
2 files changed, 12 insertions, 4 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; diff --git a/src/audio_out/audio_directx2_out.c b/src/audio_out/audio_directx2_out.c index 3f33d34d5..f5384a794 100644 --- a/src/audio_out/audio_directx2_out.c +++ b/src/audio_out/audio_directx2_out.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: audio_directx2_out.c,v 1.4 2005/09/05 17:02:57 valtri Exp $ + * $Id: audio_directx2_out.c,v 1.5 2006/04/21 23:15:45 dsalt Exp $ * * * xine audio output plugin using DirectX @@ -151,7 +151,11 @@ static int buffer_ready(dx2_driver_t *this); /* popup a dialog with error */ -static void error_message(const char *fmt, ...) { +static void +#ifdef __GNUC__ + __attribute__((format (printf, 1, 2))) +#endif + error_message(const char *fmt, ...) { char message[256]; va_list ap; |