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()
|
||||
{
|
||||
|
@@ -20,6 +20,11 @@
|
||||
#include <utility>
|
||||
#include <cassert>
|
||||
|
||||
// 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"
|
||||
|
||||
|
||||
namespace ex = std::experimental;
|
||||
|
||||
int call_with_value(int x, int y) { return (x + y); }
|
||||
|
@@ -22,6 +22,10 @@
|
||||
#include <utility>
|
||||
#include <cassert>
|
||||
|
||||
// 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 count = 0;
|
||||
|
||||
struct A_int_0
|
||||
|
@@ -20,6 +20,10 @@
|
||||
#include <utility>
|
||||
#include <cassert>
|
||||
|
||||
// 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"
|
||||
|
||||
namespace ex = std::experimental;
|
||||
|
||||
int count = 0;
|
||||
|
@@ -1,8 +1,8 @@
|
||||
#ifndef SUPPRESS_ARRAY_WARNINGS_H
|
||||
#define SUPPRESS_ARRAY_WARNINGS_H
|
||||
#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 // SUPPRESS_ARRAY_WARNINGS
|
||||
#endif // SUPPORT_DISABLE_MISSING_BRACES_WARNING_H
|
Reference in New Issue
Block a user