about summary refs log tree commit diff
path: root/src/libutil
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-03-19T18·56-0500
committerWill Dietz <w@wdtz.org>2018-03-20T00·18-0500
commitf5a2136a404553ce3462be0541123a3532bc0ab0 (patch)
treef7ffab8695c01b061049112db19b8c4df93e638f /src/libutil
parentd53970d31bdf9e4133a6ddd42d6a8d6db15903c4 (diff)
serialise.cc: remove pessimising move
from clang6:

src/libutil/serialise.cc:189:23: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/serialise.cc2
1 files changed, 1 insertions, 1 deletions
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<Source> sinkToSource(std::function<void(Sink &)> fun)
 
             if (pos == cur.size()) {
                 if (!cur.empty()) coro();
-                cur = std::move(coro.get());
+                cur = coro.get();
                 pos = 0;
             }