From 0525207ea018effaaf45bb06d498b8fd7f8ff856 Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Mon, 13 Jul 2015 17:18:23 -0700 Subject: [PATCH] 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 --- folly/io/async/test/ScopedEventBaseThreadTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); -- 2.34.1