Skip to content

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

Open
hebasto wants to merge 1 commit intobitcoin-core:bitcoin-forkfrom
hebasto:250517-unused
Open

refactor: Delete unused ScopedHandle:operator=(ScopedHandle&&)#53
hebasto wants to merge 1 commit intobitcoin-core:bitcoin-forkfrom
hebasto:250517-unused

Conversation

@hebasto
Copy link
Copy Markdown
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.

Copy link
Copy Markdown

@hodlinator hodlinator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 85665f9

Tested on Bitcoin Core at 2b541eeb363cd43fc225c7c7f9691c925b0e4f9d, patching the in-tree file and building Linux->Windows cross build.

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