aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/serialise.cc
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-03-19 13:56:17 -0500
committerWill Dietz <w@wdtz.org>2018-03-19 19:18:47 -0500
commitf5a2136a404553ce3462be0541123a3532bc0ab0 (patch)
treef7ffab8695c01b061049112db19b8c4df93e638f /src/libutil/serialise.cc
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/serialise.cc')
-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 6b7939225..33ae1ea38 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;
}