]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/tinycbor/cbor.h
Fix gcc10 compiler warnings
[proxmark3-svn] / client / tinycbor / cbor.h
index fd145be2ea0645db7f7bc0ba7466784522f7fc5e..9ae93eaa267c12d8fd2dd02f4d01a76210a21cd7 100644 (file)
@@ -581,7 +581,11 @@ enum CborPrettyFlags {
 
 typedef CborError (*CborStreamFunction)(void *token, const char *fmt, ...)
 #ifdef __GNUC__
-    __attribute__((__format__(printf, 2, 3)))
+       #if defined(__MINGW32__) || defined(__MINGW64__)
+               __attribute__((__format__(__MINGW_PRINTF_FORMAT, 2, 3)))
+       #else
+               __attribute__((__format__(printf, 2, 3)))
+       #endif
 #endif
 ;
 
Impressum, Datenschutz