[libcxx] r242630 - Commit file missing from r242629
Eric Fiselier
eric at efcs.ca
Sat Jul 18 17:11:50 PDT 2015
Author: ericwf
Date: Sat Jul 18 19:11:50 2015
New Revision: 242630
URL: http://llvm.org/viewvc/llvm-project?rev=242630&view=rev
Log:
Commit file missing from r242629
Added:
libcxx/trunk/test/std/containers/sequences/array/suppress_array_warnings.h
Added: libcxx/trunk/test/std/containers/sequences/array/suppress_array_warnings.h
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/std/containers/sequences/array/suppress_array_warnings.h?rev=242630&view=auto
==============================================================================
--- libcxx/trunk/test/std/containers/sequences/array/suppress_array_warnings.h (added)
+++ libcxx/trunk/test/std/containers/sequences/array/suppress_array_warnings.h Sat Jul 18 19:11:50 2015
@@ -0,0 +1,8 @@
+#ifndef SUPPRESS_ARRAY_WARNINGS_H
+#define SUPPRESS_ARRAY_WARNINGS_H
+
+// std::array is explicitly allowed to be initialized with A a = { init-list };.
+// Disable the missing braces warning for this reason.
+#pragma GCC diagnostic ignored "-Wmissing-braces"
+
+#endif // SUPPRESS_ARRAY_WARNINGS
More information about the cfe-commits
mailing list