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 16:12:03-07:00
log7c93d9aacb5987c3ada52f7f68c6f38594e08612
tree5c8516e9b565e026baa32139a8c6097c439be098
parent6e636064e6d993ebb0eb6ef386f5f19cb8727fe3

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