Skip to content
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

General: Resolve lingering -Wshadow warnings #12405

Merged
merged 4 commits into from Dec 12, 2023
Merged

Conversation

lioncash
Copy link
Member

This should get rid of the remaining -Wshadow warnings in our code (on GCC 13 anyway, I don't know about Clang).

Given how the lambda doesn't capture anything, we can move this to a
internally linked function, which prevents any name shadowing.
We get a warning about shadowing the va_list type and just
run-of-the-mill variable shadowing, which we can easily fix.
While not captured, we're definitely shadowing the result variable
outside the lambda.
Fairly straightforward variable shadowing.
@Tilka Tilka merged commit 53a51a6 into dolphin-emu:master Dec 12, 2023
11 checks passed
@lioncash lioncash deleted the shadow2 branch December 12, 2023 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants