Skip to content

Conversation

@hebasto
Copy link
Member

@hebasto hebasto commented Feb 12, 2023

This PR is a follow up of #26661 that introduced a local variable shadowing which I've noticed while reviewing #25665.

@DrahtBot
Copy link
Contributor

DrahtBot commented Feb 12, 2023

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Reviews

See the guideline for information on the review process.

Type Reviewers
ACK stickies-v, furszy

If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

Conflicts

No conflicts as of last run.

@hebasto
Copy link
Member Author

hebasto commented Feb 12, 2023

cc @furszy

Copy link
Member

@furszy furszy left a comment

Choose a reason for hiding this comment

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

Could remove the top variable instead of renaming the internal one: furszy@3fb01a9.

@hebasto
Copy link
Member Author

hebasto commented Feb 13, 2023

Could remove the top variable instead of renaming the internal one: furszy@3fb01a9.

Thanks! Done.

Copy link
Contributor

@stickies-v stickies-v left a comment

Choose a reason for hiding this comment

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

ACK 3fb01a9

Copy link
Member

@furszy furszy left a comment

Choose a reason for hiding this comment

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

ACK 3fb01a9

@fanquake
Copy link
Member

There are currently multiple instances of -Wshadow warnings emmited when compiling the codebase. Is there some reason this one specifically needs fixing? Otherwise this just introduces a pointless merge conflict to a number of very recently-rebased PRs.

@hebasto
Copy link
Member Author

hebasto commented Feb 13, 2023

There are currently multiple instances of -Wshadow warnings emmited when compiling the codebase.

It was not about compiler warning, rather about code readability.

Is there some reason this one specifically needs fixing?

Probably subjective, but there was some extra mental burden while reviewing other PRs which touch this code.

Otherwise this just introduces a pointless merge conflict to a number of very recently-rebased PRs.

I hoped that just renaming (the first version of this PR) will not introduce any conflicts.

@hebasto hebasto closed this Feb 13, 2023
@bitcoin bitcoin locked and limited conversation to collaborators Feb 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants