Commit 4a8a8fc1 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Fix folly/experimental/pushmi under gcc8 with -Wmissing-braces

Summary:
[Folly] Fix `folly/experimental/pushmi` under gcc8 with `-Wmissing-braces`.

```
folly/experimental/pushmi/test/FlowManyTest.cpp: In member function 'virtual void FlowManySender_From_Test::TestBody()':
folly/experimental/pushmi/test/FlowManyTest.cpp:294:44: error: missing braces around initializer for 'std::__array_traits<int, 5>::_Type' {aka 'int [5]'} [-Werror=missing-braces]
folly/experimental/pushmi/test/PushmiTest.cpp: In member function 'virtual void FromIntManySender_TransformAndSubmit_Test::TestBody()':
folly/experimental/pushmi/test/PushmiTest.cpp:160:34: error: missing braces around initializer for 'std::__array_traits<int, 3>::_Type' {aka 'int [3]'} [-Werror=missing-braces]
```

Reviewed By: ericniebler

Differential Revision: D13648360

fbshipit-source-id: 3684d8fcc5549e91348942e94c0d2971fe50e4f6
parent 9c96e07c
...@@ -291,7 +291,7 @@ TEST_F(ConcurrentFlowManySender, RacingCancellation) { ...@@ -291,7 +291,7 @@ TEST_F(ConcurrentFlowManySender, RacingCancellation) {
} }
TEST(FlowManySender, From) { TEST(FlowManySender, From) {
auto v = std::array<int, 5>{0, 1, 2, 3, 4}; auto v = std::array<int, 5>{{0, 1, 2, 3, 4}};
auto f = op::flow_from(v); auto f = op::flow_from(v);
int actual = 0; int actual = 0;
......
...@@ -157,7 +157,7 @@ TEST(JustIntSingleSender, TransformAndSubmit) { ...@@ -157,7 +157,7 @@ TEST(JustIntSingleSender, TransformAndSubmit) {
} }
TEST(FromIntManySender, TransformAndSubmit) { TEST(FromIntManySender, TransformAndSubmit) {
std::array<int, 3> arr{0, 9, 99}; std::array<int, 3> arr{{0, 9, 99}};
auto m = op::from(arr); auto m = op::from(arr);
using M = decltype(m); using M = decltype(m);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment