From 7c88fe375b15c44d77bccc9ab733b8069d228e6f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 15 Oct 2020 10:14:10 +0200 Subject: 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 --- src/tool_filetime.c | 5 +++++ 1 file changed, 5 insertions(+) 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 #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; -- cgit v1.2.1