From 4569b4dbd603f17d1599219b1985996a41893230 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 14 Jun 2016 15:53:40 -0700 Subject: [PATCH] Fix -Wpessimizing-move --- test/posix-test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/posix-test.cc b/test/posix-test.cc index 2dd3f046..e6332bf0 100644 --- a/test/posix-test.cc +++ b/test/posix-test.cc @@ -232,7 +232,7 @@ TEST(FileTest, MoveAssignmentClosesFile) { File OpenBufferedFile(int &fd) { File f = open_file(); fd = f.descriptor(); - return std::move(f); + return f; } TEST(FileTest, MoveFromTemporaryInCtor) {