• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===----------------------------------------------------------------------===//
2 //
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
6 //
7 //===----------------------------------------------------------------------===//
8 #ifndef SUPPORT_DISABLE_MISSING_BRACES_WARNING_H
9 #define SUPPORT_DISABLE_MISSING_BRACES_WARNING_H
10 
11 // std::array is explicitly allowed to be initialized with A a = { init-list };.
12 // Disable the missing braces warning for this reason.
13 #if defined(__GNUC__)
14 #pragma GCC diagnostic ignored "-Wmissing-braces"
15 #elif defined(__clang__)
16 #pragma clang diagnostic ignored "-Wmissing-braces"
17 #endif
18 
19 #endif // SUPPORT_DISABLE_MISSING_BRACES_WARNING_H
20