mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 09:08:49 -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:
parent
15997f6db5
commit
7c88fe375b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user