Summary: [Folly] Fix Build: folly/io/async/test/ScopedEventBasedThreadTest.cpp
Failure with latest clang:
folly/io/async/test/ScopedEventBaseThreadTest.cpp:72:8: error: explicitly moving variable of type 'folly::ScopedEventBaseThread' to itself [-Werror,-Wself-move]
sebt = std::move(sebt);
Reviewed By: @markisaa
Differential Revision:
D2238762
}
TEST_F(ScopedEventBaseThreadTest, self_move) {
- ScopedEventBaseThread sebt;
- sebt = std::move(sebt);
+ ScopedEventBaseThread sebt0;
+ auto sebt = std::move(sebt0);
EXPECT_NE(nullptr, sebt.getEventBase());