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

Core: Default initialize a pointer to nullptr in gdsp_do_dma() #748

Merged
merged 1 commit into from Aug 12, 2014

Conversation

lioncash
Copy link
Member

@lioncash lioncash commented Aug 6, 2014

The if-statement implies that this could fail comparison for a case in the switch statement somehow. If it does fail, then we'd be comparing for nullity with an uninitialized pointer.

Even if this isn't possible, Clang still warns about potential uninitialized values.

The if-statement implies that this could fail in the switch statement somehow. If it does fail, then we'd be comparing with an uninitialized pointer.
@degasus
Copy link
Member

degasus commented Aug 7, 2014

"switch (ctl & 0x3)" -- so I doubt that it will be used uninitialized. But if the compiler warns, it also didn't optimize, so LGTM

shuffle2 added a commit that referenced this pull request Aug 12, 2014
Core: Default initialize a pointer to nullptr in gdsp_do_dma()
@shuffle2 shuffle2 merged commit fe2321e into dolphin-emu:master Aug 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants