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)
3333 return _stub (_DstBuf, _Size, _Format, _ArgList);
3434}
3535
36#pragma clang diagnostic push
37#pragma clang diagnostic ignored "-Wimplicit-function-declaration"
38
3639static int __cdecl
3740_int_vsprintf_s (char *_DstBuf, size_t _Size, const char *_Format, va_list _ArgList)
3841{
3942 return __ms_vsnprintf (_DstBuf, _Size, _Format, _ArgList);
4043}
44
45#pragma clang diagnostic pop
lib/libc/mingw/stdio/vwscanf.c+5
......@@ -10,7 +10,12 @@
1010#include <wchar.h>
1111#include <stdio.h>
1212
13#pragma clang diagnostic push
14#pragma clang diagnostic ignored "-Wimplicit-function-declaration"
15
1316int __ms_vwscanf (const wchar_t * __restrict__ format, va_list arg)
1417{
1518 return __ms_vfwscanf(stdin, format, arg);
1619}
20
21#pragma clang diagnostic pop