From: Marc Hoersken Date: Mon, 1 Nov 2021 20:56:30 +0000 (+0100) Subject: Revert "src/tool_filetime: disable -Wformat on mingw for this file" X-Git-Tag: curl-7_80_0~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45a7821eefc564d0da100dafbe26d1fd61134fa9;p=thirdparty%2Fcurl.git Revert "src/tool_filetime: disable -Wformat on mingw for this file" This reverts commit 7c88fe375b15c44d77bccc9ab733b8069d228e6f. Follow up to #6535 as the pragma is obsolete with warnf Closes #7941 --- diff --git a/src/tool_filetime.c b/src/tool_filetime.c index e31fd59140..57ff0c2d9d 100644 --- a/src/tool_filetime.c +++ b/src/tool_filetime.c @@ -30,11 +30,6 @@ # include #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, struct GlobalConfig *global) { curl_off_t result = -1;