]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crimson: move() explicitly to avoid copy
authorKefu Chai <kchai@redhat.com>
Sat, 11 Jan 2020 08:26:54 +0000 (16:26 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 11 Jan 2020 15:12:27 +0000 (23:12 +0800)
commit2ed00c0328ffb250aa1dad616d4e4586747ea288
tree5edfb1f5c4c1956c7ed4a438d6dfbceb1293e5b1
parentfa228ef9a74050ff44ec7d9c715d19f071f4c6b7
crimson: move() explicitly to avoid copy

to silence following warnings from clang 9.0.1:

src/crimson/osd/heartbeat.cc:143:14: warning: local variable 'extras' will be copied despite being returned by name [-Wreturn-std-move]
      return extras;
             ^~~~~~
../src/crimson/osd/heartbeat.cc:143:14: note: call 'std::move' explicitly to avoid copying
      return extras;
             ^~~~~~
             std::move(extras)

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/heartbeat.cc