From b3abff205a128e76f7e3b17c55ea99e5eeb1f816 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 23 May 2020 16:26:42 +0800 Subject: [PATCH] crimson/osd: remove redundant std::move() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit this should address following warning: ../src/crimson/osd/ops_executer.cc:821:6: required from here ../src/crimson/osd/ops_executer.cc:818:37: warning: redundant move in return statement [-Wredundant-move] 818 | return std::move(entries); | ^ ../src/crimson/osd/ops_executer.cc:818:37: note: remove ‘std::move’ call Signed-off-by: Kefu Chai --- src/crimson/osd/ops_executer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crimson/osd/ops_executer.cc b/src/crimson/osd/ops_executer.cc index b6d557a31cb20..32b77f66e9a4c 100644 --- a/src/crimson/osd/ops_executer.cc +++ b/src/crimson/osd/ops_executer.cc @@ -815,7 +815,7 @@ static seastar::future do_pgls_common( if (!obj.is_min()) { entries.emplace_back(obj.oid, obj.get_key()); } - return std::move(entries); + return entries; }), seastar::make_ready_future(next)); }).then([pg_end](auto&& ret) { -- 2.39.5