diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-01-13 10:58:54 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-01-13 13:37:21 +0100 |
commit | 521da2dbd3d010a14be14b427c0630f4e91662d8 (patch) | |
tree | 34bc77f35ee3f19b8eaeedfcdd5e75fb87e036d7 /lib | |
parent | e6b72644c2058117a1c32541b57cbf3898399f12 (diff) | |
download | curl-521da2dbd3d010a14be14b427c0630f4e91662d8.tar.gz |
curl_log: avoid printf() format checking with mingw
Since it does not seem to like %zu and more
Follow-up to db91dbbf2
Fixes #10291
Closes #10292
Diffstat (limited to 'lib')
-rw-r--r-- | lib/curl_log.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/curl_log.h b/lib/curl_log.h index 9ce1e9133..ad6143fa9 100644 --- a/lib/curl_log.h +++ b/lib/curl_log.h @@ -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 |