[pulseaudio-discuss] [PATCH v2 1/6] gccmacro: Disable printf-like format checking on mingw32 compilers.
Thomas Martitz
kugel at rockbox.org
Mon Aug 20 14:50:34 PDT 2012
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