From: Yedidya Feldblum Date: Tue, 14 Jul 2015 00:18:23 +0000 (-0700) Subject: Fix Build: folly/io/async/test/ScopedEventBasedThreadTest.cpp X-Git-Tag: v0.51.0~17 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=0525207ea018effaaf45bb06d498b8fd7f8ff856;p=folly.git Fix Build: folly/io/async/test/ScopedEventBasedThreadTest.cpp 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 --- diff --git a/folly/io/async/test/ScopedEventBaseThreadTest.cpp b/folly/io/async/test/ScopedEventBaseThreadTest.cpp index ba94518a..b6373070 100644 --- a/folly/io/async/test/ScopedEventBaseThreadTest.cpp +++ b/folly/io/async/test/ScopedEventBaseThreadTest.cpp @@ -68,8 +68,8 @@ TEST_F(ScopedEventBaseThreadTest, move) { } TEST_F(ScopedEventBaseThreadTest, self_move) { - ScopedEventBaseThread sebt; - sebt = std::move(sebt); + ScopedEventBaseThread sebt0; + auto sebt = std::move(sebt0); EXPECT_NE(nullptr, sebt.getEventBase());