From 9d73243bc1ce27a6e9527f23e287bf8208113ae2 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Wed, 25 Nov 2015 01:06:36 +0000 Subject: Silence a -Wmissing-braces warning in the tests; mbstate_t is defined differently on different C libraries. llvm-svn: 254050 --- libcxx/test/std/depr/depr.c.headers/wchar_h.pass.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libcxx/test/std/depr') diff --git a/libcxx/test/std/depr/depr.c.headers/wchar_h.pass.cpp b/libcxx/test/std/depr/depr.c.headers/wchar_h.pass.cpp index c4a218bae56..e561b3e5a72 100644 --- a/libcxx/test/std/depr/depr.c.headers/wchar_h.pass.cpp +++ b/libcxx/test/std/depr/depr.c.headers/wchar_h.pass.cpp @@ -31,7 +31,15 @@ int main() { +// mbstate_t comes from the underlying C library; it is defined (in C99) as: +// a complete object type other than an array type that can hold the conversion +// state information necessary to convert between sequences of multibyte +// characters and wide characters +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wmissing-braces" mbstate_t mb = {0}; +#pragma clang diagnostic pop + size_t s = 0; tm *tm = 0; wint_t w = 0; -- cgit v1.2.3