Skip to content

rename local variables shadowing global variables of the same name #113

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

Merged
merged 1 commit into from
May 12, 2020

Conversation

DerDakon
Copy link
Member

Again I would merge this whenever it is ready, preferable even for 1.08.

Copy link
Member

@schmonz schmonz left a comment

Choose a reason for hiding this comment

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

Good idea. This may make fuzz for some third-party patches but we decided, IIRC, we’re okay with that. I am, anyway, if it gets us code that’s harder to interpret incorrectly. As usual, I’m curious how this popped up on your radar — compiler warnings?

@DerDakon
Copy link
Member Author

Yes, running with -Wshadow.

@DerDakon
Copy link
Member Author

The part in cdbmake_add.c collides with #124. It can just be dropped when that is merged first.

@DerDakon DerDakon merged commit b75af9b into master May 12, 2020
@DerDakon DerDakon deleted the Dakon-vshadow branch May 12, 2020 16:23
@DerDakon DerDakon added this to the 1.08 milestone May 13, 2020
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.

3 participants