summaryrefslogtreecommitdiffstats
path: root/libcxx/test
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2015-11-25 01:06:36 +0000
committerMarshall Clow <mclow.lists@gmail.com>2015-11-25 01:06:36 +0000
commit9d73243bc1ce27a6e9527f23e287bf8208113ae2 (patch)
tree3cf1d876c25d7b4fd1f33b7efb9a2da03e3e13fd /libcxx/test
parent82d2d07ced7361d736285acdf48b0e28e04a7560 (diff)
downloadbcm5719-llvm-9d73243bc1ce27a6e9527f23e287bf8208113ae2.tar.gz
bcm5719-llvm-9d73243bc1ce27a6e9527f23e287bf8208113ae2.zip
Silence a -Wmissing-braces warning in the tests; mbstate_t is defined differently on different C libraries.
llvm-svn: 254050
Diffstat (limited to 'libcxx/test')
-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