Skip to content

Commit

Permalink
Warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
John Detter committed Dec 20, 2016
1 parent 6397092 commit ff02d91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions common/src/arch-x86.C
Expand Up @@ -2108,8 +2108,7 @@ static ia32_entry oneByteMap[256] = {
{ e_push, t_done, 0, false, { ES, eSP, Zz }, 0, s1R2RW, 0 }, // Semantics rewritten to ignore stack "operand"
{ e_pop, t_done, 0, false, { ES, eSP, Zz }, 0, s1W2RW, 0 },
/* 08 */
{ e_or, t_done, 0,
true, { Eb, Gb, Zz }, 0, s1RW2R },
{ e_or, t_done, 0, true, { Eb, Gb, Zz }, 0, s1RW2R, 0},
{ e_or, t_done, 0, true, { Ev, Gv, Zz }, 0, s1RW2R, 0 },
{ e_or, t_done, 0, true, { Gb, Eb, Zz }, 0, s1RW2R, 0 },
{ e_or, t_done, 0, true, { Gv, Ev, Zz }, 0, s1RW2R, 0 },
Expand Down
4 changes: 4 additions & 0 deletions common/src/dyn_regs.C
Expand Up @@ -417,6 +417,7 @@ MachRegister MachRegister::getArchRegFromAbstractReg(MachRegister abstract,
default:
assert(0);
}

return Dyninst::InvalidReg;
}

Expand All @@ -434,7 +435,10 @@ MachRegister MachRegister::getZeroFlag(Dyninst::Architecture arch)
assert(0);
case Arch_none:
return InvalidReg;
default:
return InvalidReg;
}

return InvalidReg;
}

Expand Down

0 comments on commit ff02d91

Please sign in to comment.