2016-01-20 05:52:04 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2019-01-19 18:56:40 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2016-01-20 05:52:04 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
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
|