gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 241/411: src/tool_filetime: disable -Wformat on mingw for this f


From: gnunet
Subject: [gnurl] 241/411: src/tool_filetime: disable -Wformat on mingw for this file
Date: Wed, 13 Jan 2021 01:20:56 +0100

This is an automated email from the git hooks/post-receive script.

nikita pushed a commit to branch master
in repository gnurl.

commit 7c88fe375b15c44d77bccc9ab733b8069d228e6f
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Thu Oct 15 10:14:10 2020 +0200

    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 <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;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]