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

Commits on Dec 19, 2016

  1. Clang/str_list.h: fix clang warning about std::move

    /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>
    wjwithagen committed Dec 19, 2016
    Copy the full SHA
    d9acbf5 View commit details
    Browse the repository at this point in the history