• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 #ifndef SUPPORT_DISABLE_MISSING_BRACES_WARNING_H
10 #define SUPPORT_DISABLE_MISSING_BRACES_WARNING_H
11 
12 // std::array is explicitly allowed to be initialized with A a = { init-list };.
13 // Disable the missing braces warning for this reason.
14 #if defined(__GNUC__)
15 #pragma GCC diagnostic ignored "-Wmissing-braces"
16 #elif defined(__clang__)
17 #pragma clang diagnostic ignored "-Wmissing-braces"
18 #endif
19 
20 #endif // SUPPORT_DISABLE_MISSING_BRACES_WARNING_H
21