Skip to content

refactor: Delete unused ScopedHandle:operator=(ScopedHandle&&) #53

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

Open
wants to merge 1 commit into
base: bitcoin-fork
Choose a base branch
from

Conversation

hebasto
Copy link
Member

@hebasto hebasto commented May 17, 2025

This PR removes the unused move-assignment operator to silence the -Wunused-member-function warning emitted by clang-cl:

D:\a\bitcoin\bitcoin\src\leveldb\util\env_windows.cc(84,17): error : unused member function 'operator=' [-Werror,-Wunused-member-function] [D:\a\bitcoin\bitcoin\build\src\leveldb.vcxproj]

This warning was noted during work on bitcoin/bitcoin#31507, where it was suggested that addressing it might be worthwhile.

Alternatively, the warning could be suppressed downstream, but this change avoids the need for that.

There appears to be little justification for submitting this upstream.

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.

1 participant