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

remove std::move() on temporary http_client object to resolve warning #6570

Closed
wants to merge 2 commits into from

Conversation

woodser
Copy link
Contributor

@woodser woodser commented May 19, 2020

This PR fixes the following compiler warning:

monero-core/src/wallet/wallet2.cpp:1128:17: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
m_http_client(std::move(http_client_factory->create())),
^
monero-core/src/wallet/wallet2.cpp:1128:17: note: remove std::move call here
m_http_client(std::move(http_client_factory->create())),

@woodser
Copy link
Contributor Author

woodser commented Jun 27, 2020

#6632 has this change without the subsequent merge.

@woodser woodser closed this Jun 27, 2020
@woodser woodser deleted the fix_move branch September 11, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants