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 11:00:43 +0200
commit7c88fe375b15c44d77bccc9ab733b8069d228e6f (patch)
treec507ddbb3678a926a4dfabbf17d2c15dfe9ba6e2
parent15997f6db53c70070177739716dc518e667e6090 (diff)
downloadcurl-7c88fe375b15c44d77bccc9ab733b8069d228e6f.tar.gz
src/tool_filetime: disable -Wformat on mingw for this file
With gcc 10 on mingw we otherwise get this warning: error: ISO C does not support the 'I' printf flag [-Werror=format=] Fixes #6079 Closes #6082
-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;