Skip to content

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

Merged
DerDakon merged 1 commit into
masterfrom
Dakon-vshadow
May 12, 2020
Merged

rename local variables shadowing global variables of the same name#113
DerDakon merged 1 commit into
masterfrom
Dakon-vshadow

Conversation

@DerDakon

Copy link
Copy Markdown
Member

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

@schmonz schmonz left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

Yes, running with -Wshadow.

@DerDakon

Copy link
Copy Markdown
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