summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/depr/depr.c.headers
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/std/depr/depr.c.headers')
-rw-r--r--libcxx/test/std/depr/depr.c.headers/wchar_h.pass.cpp8
1 files changed, 8 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud