1 //===----------------------------------------------------------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
8 #ifndef SUPPORT_DISABLE_MISSING_BRACES_WARNING_H
9 #define SUPPORT_DISABLE_MISSING_BRACES_WARNING_H
11 // std::array is explicitly allowed to be initialized with A a = { init-list };.
12 // Disable the missing braces warning for this reason.
14 #pragma GCC diagnostic ignored "-Wmissing-braces"
15 #elif defined(__clang__)
16 #pragma clang diagnostic ignored "-Wmissing-braces"
19 #endif // SUPPORT_DISABLE_MISSING_BRACES_WARNING_H