Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

error: moving a temporary object prevents copy elision on make check #1276

Open
semaj opened this issue Jul 25, 2016 · 1 comment
Open

error: moving a temporary object prevents copy elision on make check #1276

semaj opened this issue Jul 25, 2016 · 1 comment
Assignees

Comments

@semaj
Copy link

semaj commented Jul 25, 2016

Following the build instructions in the readme. gclient sync worked fine, but make -C certificate-transparency check produces the following:

  CXX    cpp/proto/serializer_v2.o
cpp/proto/serializer_v2.cc:97:10: error: moving a temporary object prevents copy elision
      [-Werror,-Wpessimizing-move]
  return std::move(OID(oid));
         ^
cpp/proto/serializer_v2.cc:97:10: note: remove std::move call here
  return std::move(OID(oid));
         ^~~~~~~~~~        ~
cpp/proto/serializer_v2.cc:114:10: error: moving a temporary object prevents copy elision
      [-Werror,-Wpessimizing-move]
  return std::move(OID(oid));
         ^
cpp/proto/serializer_v2.cc:114:10: note: remove std::move call here
  return std::move(OID(oid));
         ^~~~~~~~~~        ~
2 errors generated.

I'm on Ubuntu 12.04 LTS.
Relevant versions:

$ clang++ --version
clang version 3.9.0-svn274430-1~exp1 (trunk)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
$ cmake -V
cmake version 3.2.3

Any ideas? Thanks!

@pphaneuf pphaneuf self-assigned this Aug 3, 2016
@pphaneuf
Copy link
Contributor

pphaneuf commented Aug 3, 2016

Luckily for you, I think commit e11013b might have fixed that?

Could you give that a try and either close this or let us know if it didn't? Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants