summaryrefslogtreecommitdiffstats
path: root/libcxx/test/support/disable_missing_braces_warning.h
blob: 967a87ab3a2e6c3be67bf420bd214829e002ad56 (plain)
1
2
3
4
5
6
7
8
#ifndef SUPPORT_DISABLE_MISSING_BRACES_WARNING_H
#define SUPPORT_DISABLE_MISSING_BRACES_WARNING_H

// std::array is explicitly allowed to be initialized with A a = { init-list };.
// Disable the missing braces warning for this reason.
#pragma GCC diagnostic ignored "-Wmissing-braces"

#endif // SUPPORT_DISABLE_MISSING_BRACES_WARNING_H
OpenPOWER on IntegriCloud