diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-10-15 10:14:10 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-10-15 11:00:43 +0200 |
commit | 7c88fe375b15c44d77bccc9ab733b8069d228e6f (patch) | |
tree | c507ddbb3678a926a4dfabbf17d2c15dfe9ba6e2 | |
parent | 15997f6db53c70070177739716dc518e667e6090 (diff) | |
download | curl-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.c | 5 |
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; |