mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
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.
This commit is contained in:
parent
6e636064e6
commit
7c93d9aacb
@ -33,8 +33,13 @@ vsprintf_s (char *_DstBuf, size_t _Size, const char *_Format, va_list _ArgList)
|
||||
return _stub (_DstBuf, _Size, _Format, _ArgList);
|
||||
}
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wimplicit-function-declaration"
|
||||
|
||||
static int __cdecl
|
||||
_int_vsprintf_s (char *_DstBuf, size_t _Size, const char *_Format, va_list _ArgList)
|
||||
{
|
||||
return __ms_vsnprintf (_DstBuf, _Size, _Format, _ArgList);
|
||||
}
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
@ -10,7 +10,12 @@
|
||||
#include <wchar.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wimplicit-function-declaration"
|
||||
|
||||
int __ms_vwscanf (const wchar_t * __restrict__ format, va_list arg)
|
||||
{
|
||||
return __ms_vfwscanf(stdin, format, arg);
|
||||
}
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
Loading…
Reference in New Issue
Block a user