]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Clang/str_list.h: fix clang warning about std::move 12570/head
authorWillem Jan Withagen <wjw@digiware.nl>
Mon, 19 Dec 2016 16:29:38 +0000 (17:29 +0100)
committerGitHub <noreply@github.com>
Mon, 19 Dec 2016 16:29:38 +0000 (17:29 +0100)
commitd9acbf587ba118218838c4d1857fdea6495e5961
tree56495cf47ab76f65b210122500665a77e1075c0c
parent2d982ae1df53b49b10bde4ab70bc078cbdf1a3d7
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>
src/include/str_list.h