diff options
author | Will Dietz <w@wdtz.org> | 2018-03-19T18·56-0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-03-20T00·18-0500 |
commit | f5a2136a404553ce3462be0541123a3532bc0ab0 (patch) | |
tree | f7ffab8695c01b061049112db19b8c4df93e638f /src/libutil | |
parent | d53970d31bdf9e4133a6ddd42d6a8d6db15903c4 (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.cc | 2 |
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; } |