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:
Gregory Hainaut 2016-08-17 19:42:28 +02:00
parent bf0e5dc5bd
commit 15a4d1f0a9
1 changed files with 3 additions and 3 deletions

View File

@ -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)