diff options
author | 2011-05-30 03:31:11 +0000 | |
---|---|---|
committer | 2011-05-30 03:31:11 +0000 | |
commit | 601301fc95130f5322fb89d0e34d713b8f6e5ac9 (patch) | |
tree | 26d4fd37a565e61b57211b79fc9ae5c2b480e9a7 /src/emu/cpu/i86 | |
parent | 999394b8f50cbc224c3415fd42386d71217e799c (diff) |
GCC 4.6 "Variable assigned but not used" fixes, part 6 (no whatsnew)
Diffstat (limited to 'src/emu/cpu/i86')
-rw-r--r-- | src/emu/cpu/i86/instr186.c | 4 | ||||
-rw-r--r-- | src/emu/cpu/i86/instr86.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/cpu/i86/instr186.c b/src/emu/cpu/i86/instr186.c index 1940c3eaa14..6dbf28902e2 100644 --- a/src/emu/cpu/i86/instr186.c +++ b/src/emu/cpu/i86/instr186.c @@ -27,15 +27,15 @@ static void PREFIX186(_pusha)(i8086_state *cpustate) /* Opcode 0x60 */ PUSH(cpustate->regs.w[DI]); } +static unsigned i186_popa_tmp; // hack around GCC 4.6 error because we need the side effects of POP static void PREFIX186(_popa)(i8086_state *cpustate) /* Opcode 0x61 */ { - unsigned tmp; ICOUNT -= timing.popa; POP(cpustate->regs.w[DI]); POP(cpustate->regs.w[SI]); POP(cpustate->regs.w[BP]); - POP(tmp); + POP(i186_popa_tmp); POP(cpustate->regs.w[BX]); POP(cpustate->regs.w[DX]); POP(cpustate->regs.w[CX]); diff --git a/src/emu/cpu/i86/instr86.c b/src/emu/cpu/i86/instr86.c index e7086dd5e78..17896a6706d 100644 --- a/src/emu/cpu/i86/instr86.c +++ b/src/emu/cpu/i86/instr86.c @@ -1177,8 +1177,8 @@ static void PREFIX86(_cmp_axd16)(i8086_state *cpustate) /* Opcode 0x3d */ static void PREFIX86(_aas)(i8086_state *cpustate) /* Opcode 0x3f */ { - UINT8 ALcarry=1; - if (cpustate->regs.b[AL]>0xf9) ALcarry=2; +// UINT8 ALcarry=1; +// if (cpustate->regs.b[AL]>0xf9) ALcarry=2; if (AF || ((cpustate->regs.b[AL] & 0xf) > 9)) { |