summaryrefslogtreecommitdiff
path: root/src/audio_out
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio_out')
-rw-r--r--src/audio_out/audio_alsa_out.c8
-rw-r--r--src/audio_out/audio_directx2_out.c8
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;