[PATCH v3 1/6] gccmacro: Disable printf-like format checking on mingw32 compilers.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Thomas Martitz <kuge@xxxxxxxxxxx>

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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux