Suppress array initialization warnings in std::experimental::apply tests
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@248987 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,7 +14,9 @@
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
|
||||
#include "../suppress_array_warnings.h"
|
||||
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
||||
// Disable the missing braces warning for this reason.
|
||||
#include "disable_missing_braces_warning.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
|
||||
#include "../suppress_array_warnings.h"
|
||||
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
||||
// Disable the missing braces warning for this reason.
|
||||
#include "disable_missing_braces_warning.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
|
||||
#include "../suppress_array_warnings.h"
|
||||
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
||||
// Disable the missing braces warning for this reason.
|
||||
#include "disable_missing_braces_warning.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
|
||||
#include "../suppress_array_warnings.h"
|
||||
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
||||
// Disable the missing braces warning for this reason.
|
||||
#include "disable_missing_braces_warning.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
|
||||
#include "../suppress_array_warnings.h"
|
||||
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
||||
// Disable the missing braces warning for this reason.
|
||||
#include "disable_missing_braces_warning.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
|
||||
#include "../suppress_array_warnings.h"
|
||||
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
||||
// Disable the missing braces warning for this reason.
|
||||
#include "disable_missing_braces_warning.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
|
||||
#include "../suppress_array_warnings.h"
|
||||
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
||||
// Disable the missing braces warning for this reason.
|
||||
#include "disable_missing_braces_warning.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -20,7 +20,10 @@
|
||||
#include <cassert>
|
||||
|
||||
#include "test_macros.h"
|
||||
#include "../suppress_array_warnings.h"
|
||||
|
||||
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
||||
// Disable the missing braces warning for this reason.
|
||||
#include "disable_missing_braces_warning.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -16,7 +16,9 @@
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
#include "../suppress_array_warnings.h"
|
||||
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
||||
// Disable the missing braces warning for this reason.
|
||||
#include "disable_missing_braces_warning.h"
|
||||
|
||||
|
||||
#if TEST_STD_VER > 11
|
||||
|
||||
@@ -16,7 +16,9 @@
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
#include "../suppress_array_warnings.h"
|
||||
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
||||
// Disable the missing braces warning for this reason.
|
||||
#include "disable_missing_braces_warning.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -18,7 +18,9 @@
|
||||
#include <utility>
|
||||
#include <cassert>
|
||||
|
||||
#include "../suppress_array_warnings.h"
|
||||
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
||||
// Disable the missing braces warning for this reason.
|
||||
#include "disable_missing_braces_warning.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -19,7 +19,9 @@
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
#include "suppress_array_warnings.h"
|
||||
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
||||
// Disable the missing braces warning for this reason.
|
||||
#include "disable_missing_braces_warning.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
|
||||
#include "suppress_array_warnings.h"
|
||||
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
||||
// Disable the missing braces warning for this reason.
|
||||
#include "disable_missing_braces_warning.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -19,7 +19,9 @@
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
#include "suppress_array_warnings.h"
|
||||
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
||||
// Disable the missing braces warning for this reason.
|
||||
#include "disable_missing_braces_warning.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -19,7 +19,9 @@
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
#include "suppress_array_warnings.h"
|
||||
// std::array is explicitly allowed to be initialized with A a = { init-list };.
|
||||
// Disable the missing braces warning for this reason.
|
||||
#include "disable_missing_braces_warning.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
#ifndef SUPPRESS_ARRAY_WARNINGS_H
|
||||
#define SUPPRESS_ARRAY_WARNINGS_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 // SUPPRESS_ARRAY_WARNINGS
|
||||
Reference in New Issue
Block a user