Zebediah Figura : include: Don't use the printf format attribute when compiling against msvcrt and not cross-compiling.

Alexandre Julliard julliard at winehq.org
Thu Jan 30 16:10:25 CST 2020


Module: wine
Branch: master
Commit: 6895470ab0bf07cc1444f30f845cbb5b7c96e659
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=6895470ab0bf07cc1444f30f845cbb5b7c96e659

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Tue Jan 28 22:56:03 2020 -0600

include: Don't use the printf format attribute when compiling against msvcrt and not cross-compiling.

Since it will spit out bogus warnings in the case we use Microsoft-specific
extensions.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/wine/debug.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/wine/debug.h b/include/wine/debug.h
index 8985163894..2a63f4351d 100644
--- a/include/wine/debug.h
+++ b/include/wine/debug.h
@@ -88,7 +88,11 @@ struct __wine_debug_channel
 #define __WINE_DBG_LOG(args...) \
     wine_dbg_log( __dbcl, __dbch, __FUNCTION__, args); } } while(0)
 
+#if !defined(__WINE_USE_MSVCRT) || defined(__MINGW32__)
 #define __WINE_PRINTF_ATTR(fmt,args) __attribute__((format (printf,fmt,args)))
+#else
+#define __WINE_PRINTF_ATTR(fmt,args)
+#endif
 
 
 #ifdef WINE_NO_TRACE_MSGS




More information about the wine-cvs mailing list