PPCDebugInterface: Silence trivial -Wmaybe-uninitialized warning

We can just initialize register_index, even if it gets overwritten later
on via Common::FromChars.
This commit is contained in:
Lioncash 2023-12-12 15:41:46 -05:00
parent 87b44a2fb8
commit b0b1308160
1 changed files with 1 additions and 1 deletions

View File

@ -467,7 +467,7 @@ PPCDebugInterface::GetMemoryAddressFromInstruction(const std::string& instructio
if (is_reg == offset_match[0])
{
unsigned register_index;
unsigned register_index = 0;
Common::FromChars(offset_match.substr(1), register_index, 10);
offset = (register_index == 0 ? 0 : m_system.GetPPCState().gpr[register_index]);
}