Mike Percy has uploaded a new change for review.

  http://gerrit.cloudera.org:8080/4122

Change subject: Remove pessimizing std::move() in return statement
......................................................................

Remove pessimizing std::move() in return statement

This change fixes this Clang warning:

[334/463] Building CXX object 
src/kudu/consensus/CMakeFiles/raft_consensus_quorum-test.dir/raft_consensus_quorum-test.cc.o
../../src/kudu/consensus/raft_consensus_quorum-test.cc:534:12: warning: moving 
a local object in a return statement prevents copy elision [-Wpessimizing-move]
    return std::move(cmeta);
           ^
../../src/kudu/consensus/raft_consensus_quorum-test.cc:534:12: note: remove 
std::move call here
    return std::move(cmeta);
           ^~~~~~~~~~     ~
1 warning generated.

Change-Id: Ida46588398ca5f5982cb86aa03825530565c0923
---
M src/kudu/consensus/raft_consensus_quorum-test.cc
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/22/4122/1
-- 
To view, visit http://gerrit.cloudera.org:8080/4122
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ida46588398ca5f5982cb86aa03825530565c0923
Gerrit-PatchSet: 1
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Mike Percy <mpe...@apache.org>

Reply via email to