mirror of
https://github.com/ziglang/zig.git
synced 2024-12-03 10:28:48 +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
b097545a5f
commit
4cdf5b6662
5
lib/libc/mingw/secapi/vsprintf_s.c
vendored
5
lib/libc/mingw/secapi/vsprintf_s.c
vendored
@ -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
|
||||
|
5
lib/libc/mingw/stdio/vwscanf.c
vendored
5
lib/libc/mingw/stdio/vwscanf.c
vendored
@ -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