Commit fc3937b5 authored by Wez Furlong's avatar Wez Furlong Committed by Facebook Github Bot

folly: fix FutureDAGTest compilation

Summary:
```
folly/experimental/test/FutureDAGTest.cpp:46:7: error: ‘source_node’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
       if (it->first != source_node) {
       ^~
cc1plus: all warnings being treated as errors
```

Reviewed By: yfeldblum

Differential Revision: D14702569

fbshipit-source-id: 949ecde007a8d84498c5d87f4a4c2db463ba83a9
parent b168f451
...@@ -30,7 +30,7 @@ struct FutureDAGTest : public testing::Test { ...@@ -30,7 +30,7 @@ struct FutureDAGTest : public testing::Test {
} }
void reset() { void reset() {
Handle source_node; Handle source_node{0};
std::unordered_set<Handle> memo; std::unordered_set<Handle> memo;
for (auto& node : nodes) { for (auto& node : nodes) {
for (Handle handle : node.second->dependencies) { for (Handle handle : node.second->dependencies) {
......
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