commit d9c808e3ff5dc6f72d92457ac448b427d1ce66ff (tree)
parent 1f09584d059cb5864228eb4188496decdc825584
Author: Andrew Kelley <andrew@ziglang.org>
Date: Wed, 9 Dec 2020 16:12:03 -0700
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.
Diffstat:
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/lib/libc/mingw/secapi/vsprintf_s.c b/lib/libc/mingw/secapi/vsprintf_s.c
@@ -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
diff --git a/lib/libc/mingw/stdio/vwscanf.c b/lib/libc/mingw/stdio/vwscanf.c
@@ -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