Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

common/str_list.h: fix clang warning about std::move #12570

Merged
merged 1 commit into from Dec 20, 2016

Conversation

wjwithagen
Copy link
Contributor

/home/jenkins/workspace/ceph-master/src/include/str_list.h:99:10: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
return std::move(str_vec);
^
/home/jenkins/workspace/ceph-master/src/include/str_list.h:99:10: note: remove std::move call here
return std::move(str_vec);
^~~~~~~~~~ ~
1 warning generated.

Signed-off-by: Willem Jan Withagen wjw@digiware.nl

/home/jenkins/workspace/ceph-master/src/include/str_list.h:99:10: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
  return std::move(str_vec);
         ^
/home/jenkins/workspace/ceph-master/src/include/str_list.h:99:10: note: remove std::move call here
  return std::move(str_vec);
         ^~~~~~~~~~       ~
1 warning generated.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
@liewegas liewegas changed the title Clang/str_list.h: fix clang warning about std::move common/str_list.h: fix clang warning about std::move Dec 19, 2016
@liewegas liewegas added this to the kraken milestone Dec 19, 2016
@liewegas liewegas merged commit 73fa838 into ceph:master Dec 20, 2016
@wjwithagen wjwithagen deleted the patch-9 branch January 4, 2017 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants