[pulseaudio-discuss] [PATCH 3/3] gccmacro: Disable printf-like format checking on mingw32 compilers.
kugel at rockbox.org
kugel at rockbox.org
Wed Aug 8 14:06:12 PDT 2012
From: Thomas Martitz <thomas.martitz at student.htw-berlin.de>
There are tons of warnings, most of them because the function is not
recognized as printf-like.
---
src/pulse/gccmacro.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pulse/gccmacro.h b/src/pulse/gccmacro.h
index 1e818ff..2e23ced 100644
--- a/src/pulse/gccmacro.h
+++ b/src/pulse/gccmacro.h
@@ -25,7 +25,7 @@
/** \file
* GCC attribute macros */
-#ifdef __GNUC__
+#if defined(__GNUC__) && !defined(__MINGW32__)
#define PA_GCC_PRINTF_ATTR(a,b) __attribute__ ((format (printf, a, b)))
#else
/** If we're in GNU C, use some magic for detecting invalid format strings */
--
1.7.10.4
More information about the pulseaudio-discuss
mailing list