1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-16 06:25:03 -05:00

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
This commit is contained in:
Daniel Stenberg 2020-10-15 10:14:10 +02:00
parent 15997f6db5
commit 7c88fe375b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -29,6 +29,11 @@
# include <sys/utime.h> # include <sys/utime.h>
#endif #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 getfiletime(const char *filename, FILE *error_stream)
{ {
curl_off_t result = -1; curl_off_t result = -1;