cxx/test/std/containers/sequences/array/suppress_array_warnings.h
Eric Fiselier b0be44f963 Commit file missing from r242629
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@242630 91177308-0d34-0410-b5e6-96231b3b80d8
2015-07-19 00:11:50 +00:00

9 lines
290 B
C++

#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