blob: c53eef8a951d1adfe2c18f8a3b358cb47d91f122 [file] [log] [blame]
Eric Fiselierfa1e5db2016-01-19 21:52:04 +00001//===----------------------------------------------------------------------===//
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 Fiselier237206b2015-10-01 07:05:38 +00009#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 Fiselier4596c292016-04-28 01:49:03 +000014#if defined(__GNUC__)
Eric Fiselier237206b2015-10-01 07:05:38 +000015#pragma GCC diagnostic ignored "-Wmissing-braces"
Eric Fiselier4596c292016-04-28 01:49:03 +000016#endif
Eric Fiselier237206b2015-10-01 07:05:38 +000017
18#endif // SUPPORT_DISABLE_MISSING_BRACES_WARNING_H