mirror of
https://github.com/curl/curl.git
synced 2026-07-23 02:17:21 +03: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
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue