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

Fix warnings on generic builder #10721

Conversation

Dentomologist
Copy link
Contributor

Now that the nightly-generic builder is working it uncovered a couple warnings I haven't seen from the other builders.

The other warnings it gave are covered by #10624.

Don't use reference variable bound to a temporary value
@shuffle2
Copy link
Contributor

shuffle2 commented Jun 4, 2022

I don't understand the change of break to continue (imo leaving them as breaks is more clear). but the removal of the outer continue and addition of default case seems ok...

@Dentomologist
Copy link
Contributor Author

It's not an essential change but breaking at the end of each case, following that to the end of the switch, then seeing it continues the loop seems less clear to me than just having each case continue the loop.

@AdmiralCurtiss
Copy link
Contributor

I'm not a fan of using continue from within a switch statement, due to the inconsistent behavior between break and continue affecting two different scopes. But whatever.

@Dentomologist Dentomologist force-pushed the fix_warnings_on_generic_builder branch from cbf4235 to 92af703 Compare June 4, 2022 19:14
@Dentomologist
Copy link
Contributor Author

Ok, I removed that change.

@shuffle2
Copy link
Contributor

shuffle2 commented Jun 4, 2022

Thanks, lgtm

@AdmiralCurtiss AdmiralCurtiss merged commit 96f9d10 into dolphin-emu:master Jun 4, 2022
10 checks passed
@Dentomologist Dentomologist deleted the fix_warnings_on_generic_builder branch June 4, 2022 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants