diff --git a/lib/libc/mingw/secapi/vsprintf_s.c b/lib/libc/mingw/secapi/vsprintf_s.c index 45dfb14b11..fd0c4ef13b 100644 --- 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 index 3360eefad1..8310498ffd 100644 --- a/lib/libc/mingw/stdio/vwscanf.c +++ b/lib/libc/mingw/stdio/vwscanf.c @@ -10,7 +10,12 @@ #include #include +#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