2016-01-20 05:52:04 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
// Source Licenses. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2015-10-01 15:05:38 +08:00
|
|
|
#ifndef SUPPORT_DISABLE_MISSING_BRACES_WARNING_H
|
|
|
|
#define SUPPORT_DISABLE_MISSING_BRACES_WARNING_H
|
2015-07-19 08:11:50 +08:00
|
|
|
|
|
|
|
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
|
|
|
// Disable the missing braces warning for this reason.
|
2016-04-28 09:49:03 +08:00
|
|
|
#if defined(__GNUC__)
|
2015-07-19 08:11:50 +08:00
|
|
|
#pragma GCC diagnostic ignored "-Wmissing-braces"
|
2017-01-07 08:10:42 +08:00
|
|
|
#elif defined(__clang__)
|
|
|
|
#pragma clang diagnostic ignored "-Wmissing-braces"
|
2016-04-28 09:49:03 +08:00
|
|
|
#endif
|
2015-07-19 08:11:50 +08:00
|
|
|
|
2015-10-01 15:05:38 +08:00
|
|
|
#endif // SUPPORT_DISABLE_MISSING_BRACES_WARNING_H
|