From f5a2136a404553ce3462be0541123a3532bc0ab0 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 19 Mar 2018 13:56:17 -0500 Subject: serialise.cc: remove pessimising move from clang6: src/libutil/serialise.cc:189:23: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] --- src/libutil/serialise.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libutil/serialise.cc') diff --git a/src/libutil/serialise.cc b/src/libutil/serialise.cc index 6b793922511e..33ae1ea389d7 100644 --- a/src/libutil/serialise.cc +++ b/src/libutil/serialise.cc @@ -185,7 +185,7 @@ std::unique_ptr sinkToSource(std::function fun) if (pos == cur.size()) { if (!cur.empty()) coro(); - cur = std::move(coro.get()); + cur = coro.get(); pos = 0; } -- cgit 1.4.1