summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-10-15 10:14:10 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-10-15 10:16:22 +0200
commite2af803a5e6e6b38c040eb8d72c2d1325f0ea864 (patch)
treec507ddbb3678a926a4dfabbf17d2c15dfe9ba6e2
parentbea3c8c6ace7b7f8d9fe5b2342b97b22e0138015 (diff)
downloadcurl-bagder/configure-format-mingw.tar.gz
src/tool_filetime: disable -Wformat on mingw for this filebagder/configure-format-mingw
Fixes #6079
-rw-r--r--src/tool_filetime.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tool_filetime.c b/src/tool_filetime.c
index 1ffc981fe..bc0132b0c 100644
--- a/src/tool_filetime.c
+++ b/src/tool_filetime.c
@@ -29,6 +29,11 @@
# include <sys/utime.h>
#endif
+#if defined(__GNUC__) && defined(__MINGW32__)
+/* GCC 10 on mingw has issues with this, disable */
+#pragma GCC diagnostic ignored "-Wformat"
+#endif
+
curl_off_t getfiletime(const char *filename, FILE *error_stream)
{
curl_off_t result = -1;