authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-12-09 16:12:03-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-12-09 17:32:32-07:00
logd9c808e3ff5dc6f72d92457ac448b427d1ce66ff
treef21631e91c3141dfca09d61d8c5f82b84cab0eb0
parent1f09584d059cb5864228eb4188496decdc825584

mingw-w64: patch to silence implicit-function-declaration warnings

Closes #7356 I did this as a patch to the source rather than passing flags so that it would intentionally be reverted when we update to the next release of mingw-w64. At this time if any warnings are still emitted we should find out why and make sure upstream is aware of the problem.

2 files changed, 10 insertions(+), 0 deletions(-)

lib/libc/mingw/secapi/vsprintf_s.c+5
...@@ -33,8 +33,13 @@ vsprintf_s (char *_DstBuf, size_t _Size, const char *_Format, va_list _ArgList)...@@ -33,8 +33,13 @@ vsprintf_s (char *_DstBuf, size_t _Size, const char *_Format, va_list _ArgList)
33 return _stub (_DstBuf, _Size, _Format, _ArgList);33 return _stub (_DstBuf, _Size, _Format, _ArgList);
34}34}
3535
36#pragma clang diagnostic push
37#pragma clang diagnostic ignored "-Wimplicit-function-declaration"
38
36static int __cdecl39static int __cdecl
37_int_vsprintf_s (char *_DstBuf, size_t _Size, const char *_Format, va_list _ArgList)40_int_vsprintf_s (char *_DstBuf, size_t _Size, const char *_Format, va_list _ArgList)
38{41{
39 return __ms_vsnprintf (_DstBuf, _Size, _Format, _ArgList);42 return __ms_vsnprintf (_DstBuf, _Size, _Format, _ArgList);
40}43}
44
45#pragma clang diagnostic pop
lib/libc/mingw/stdio/vwscanf.c+5
...@@ -10,7 +10,12 @@...@@ -10,7 +10,12 @@
10#include <wchar.h>10#include <wchar.h>
11#include <stdio.h>11#include <stdio.h>
1212
13#pragma clang diagnostic push
14#pragma clang diagnostic ignored "-Wimplicit-function-declaration"
15
13int __ms_vwscanf (const wchar_t * __restrict__ format, va_list arg)16int __ms_vwscanf (const wchar_t * __restrict__ format, va_list arg)
14{17{
15 return __ms_vfwscanf(stdin, format, arg);18 return __ms_vfwscanf(stdin, format, arg);
16}19}
20
21#pragma clang diagnostic pop