Skip to content

Fix std::move compiler warning#58

Merged
ryanofsky merged 1 commit intobitcoin-core:masterfrom
ryanofsky:pr/nomove
Oct 25, 2021
Merged

Fix std::move compiler warning#58
ryanofsky merged 1 commit intobitcoin-core:masterfrom
ryanofsky:pr/nomove

Conversation

@ryanofsky
Copy link
Copy Markdown
Collaborator

include/mp/proxy-io.h: In member function ‘mp::Logger mp::EventLoop::log()’:
include/mp/proxy-io.h:160:25: error: moving a local object in a return statement prevents copy elision [-Werror=pessimizing-move]
  160 |         return std::move(logger);
      |                ~~~~~~~~~^~~~~~~~
include/mp/proxy-io.h:160:25: note: remove ‘std::move’ call

include/mp/proxy-io.h: In member function ‘mp::Logger mp::EventLoop::log()’:
include/mp/proxy-io.h:160:25: error: moving a local object in a return statement prevents copy elision [-Werror=pessimizing-move]
  160 |         return std::move(logger);
      |                ~~~~~~~~~^~~~~~~~
include/mp/proxy-io.h:160:25: note: remove ‘std::move’ call
@ryanofsky ryanofsky merged commit 34ce921 into bitcoin-core:master Oct 25, 2021
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Dec 17, 2021
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Dec 22, 2021
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Dec 31, 2021
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Dec 31, 2021
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Jan 3, 2022
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Jan 3, 2022
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Jan 7, 2022
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Jan 7, 2022
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Jan 13, 2022
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Jan 13, 2022
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Aug 24, 2022
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Aug 24, 2022
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Sep 8, 2022
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Sep 8, 2022
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Sep 26, 2022
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Sep 26, 2022
ryanofsky added a commit to ryanofsky/bitcoin that referenced this pull request Jan 20, 2023
@bitcoin-core bitcoin-core locked and limited conversation to collaborators Jun 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant