]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl_log: avoid printf() format checking with mingw
authorDaniel Stenberg <daniel@haxx.se>
Fri, 13 Jan 2023 09:58:54 +0000 (10:58 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 13 Jan 2023 12:37:21 +0000 (13:37 +0100)
Since it does not seem to like %zu and more

Follow-up to db91dbbf2

Fixes #10291
Closes #10292

lib/curl_log.h

index 9ce1e91333006d50f27ce1d0f114eda85a5e2eaf..ad6143fa991c3d22b32617ccfbe0c5132db38424 100644 (file)
@@ -81,8 +81,9 @@ void Curl_debug(struct Curl_easy *data, curl_infotype type,
 #endif
 
 void Curl_log_cf_debug(struct Curl_easy *data, struct Curl_cfilter *cf,
-#if defined(__GNUC__) && !defined(printf) && \
-    defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
+#if defined(__GNUC__) && !defined(printf) &&                    \
+  defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \
+  !defined(__MINGW32__)
                        const char *fmt, ...)
                        __attribute__((format(printf, 3, 4)));
 #else