mirror of https://github.com/PCSX2/pcsx2.git
pcsx2: fix gcc warning
MIPSAnalyst.cpp:124:9: warning: ‘takeBranch’ may be used uninitialized in this function [-Wmaybe-uninitialized] else if (sure && !takeBranch) False positive as sure will be false but safer this way
This commit is contained in:
parent
bf0e5dc5bd
commit
15a4d1f0a9
|
@ -89,8 +89,8 @@ namespace MIPSAnalyst
|
|||
|
||||
if ((opcode.flags & IS_BRANCH) && (opcode.flags & BRANCHTYPE_MASK) == BRANCHTYPE_BRANCH)
|
||||
{
|
||||
bool sure;
|
||||
bool takeBranch;
|
||||
bool sure = false;
|
||||
bool takeBranch = false;
|
||||
switch (opcode.flags & CONDTYPE_MASK)
|
||||
{
|
||||
case CONDTYPE_EQ:
|
||||
|
@ -116,7 +116,7 @@ namespace MIPSAnalyst
|
|||
break;
|
||||
|
||||
default:
|
||||
sure = false;
|
||||
break;
|
||||
}
|
||||
|
||||
if (sure && takeBranch)
|
||||
|
|
Loading…
Reference in New Issue