| author | |
| committer | |
| log | 4cdf5b666277ab89d1d9059787007e0d7a10d30e |
| tree | 585add590c3993fa55986c9fe5148994f9caa689 |
| parent | b097545a5f2b01392c60014e1caded9dccc4b34d |
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) | ... | @@ -33,8 +33,13 @@ vsprintf_s (char *_DstBuf, size_t _Size, const char *_Format, va_list _ArgList) |
| 33 | return _stub (_DstBuf, _Size, _Format, _ArgList); | 33 | return _stub (_DstBuf, _Size, _Format, _ArgList); |
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | #pragma clang diagnostic push | ||
| 37 | #pragma clang diagnostic ignored "-Wimplicit-function-declaration" | ||
| 38 | |||
| 36 | static int __cdecl | 39 | static int __cdecl |
| 37 | _int_vsprintf_s (char *_DstBuf, size_t _Size, const char *_Format, va_list _ArgList) | 40 | _int_vsprintf_s (char *_DstBuf, size_t _Size, const char *_Format, va_list _ArgList) |
| 38 | { | 41 | { |
| 39 | return __ms_vsnprintf (_DstBuf, _Size, _Format, _ArgList); | 42 | return __ms_vsnprintf (_DstBuf, _Size, _Format, _ArgList); |
| 40 | } | 43 | } |
| 44 | |||
| 45 | #pragma clang diagnostic pop |
lib/libc/mingw/stdio/vwscanf.c+5| ... | @@ -10,7 +10,12 @@ | ... | @@ -10,7 +10,12 @@ |
| 10 | #include <wchar.h> | 10 | #include <wchar.h> |
| 11 | #include <stdio.h> | 11 | #include <stdio.h> |
| 12 | 12 | ||
| 13 | #pragma clang diagnostic push | ||
| 14 | #pragma clang diagnostic ignored "-Wimplicit-function-declaration" | ||
| 15 | |||
| 13 | int __ms_vwscanf (const wchar_t * __restrict__ format, va_list arg) | 16 | int __ms_vwscanf (const wchar_t * __restrict__ format, va_list arg) |
| 14 | { | 17 | { |
| 15 | return __ms_vfwscanf(stdin, format, arg); | 18 | return __ms_vfwscanf(stdin, format, arg); |
| 16 | } | 19 | } |
| 20 | |||
| 21 | #pragma clang diagnostic pop |