Eric Fiselier | fa1e5db | 2016-01-19 21:52:04 +0000 | [diff] [blame] | 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 | //===----------------------------------------------------------------------===// |
Eric Fiselier | 237206b | 2015-10-01 07:05:38 +0000 | [diff] [blame] | 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. |
Eric Fiselier | 4596c29 | 2016-04-28 01:49:03 +0000 | [diff] [blame] | 14 | #if defined(__GNUC__) |
Eric Fiselier | 237206b | 2015-10-01 07:05:38 +0000 | [diff] [blame] | 15 | #pragma GCC diagnostic ignored "-Wmissing-braces" |
Eric Fiselier | 4596c29 | 2016-04-28 01:49:03 +0000 | [diff] [blame] | 16 | #endif |
Eric Fiselier | 237206b | 2015-10-01 07:05:38 +0000 | [diff] [blame] | 17 | |
| 18 | #endif // SUPPORT_DISABLE_MISSING_BRACES_WARNING_H |