From ecca98f576db27e658c476511bf4793b510ab71f Mon Sep 17 00:00:00 2001 From: Felipe Gallinari Date: Wed, 26 Oct 2016 02:21:56 -0200 Subject: [PATCH] Update cpu.c old_pc set but not used [-Wunused-but-set-variable] --- cpu.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/cpu.c b/cpu.c index d8ea5db..d06f6ce 100644 --- a/cpu.c +++ b/cpu.c @@ -4368,7 +4368,6 @@ void execute_arm(u32 cycles) u32 cycles_per_instruction = global_cycles_per_instruction; cpu_alert_type cpu_alert; - u32 old_pc; if(pc_address_block == NULL) pc_address_block = load_gamepak_page(pc_region & 0x3FF); @@ -4390,7 +4389,6 @@ void execute_arm(u32 cycles) step_debug(pc, cycles_remaining); cycles_per_instruction = global_cycles_per_instruction; - old_pc = pc; execute_arm_instruction(); cycles_remaining -= cycles_per_instruction; } while(cycles_remaining > 0); @@ -4406,7 +4404,6 @@ void execute_arm(u32 cycles) collapse_flags(); step_debug(pc, cycles_remaining); - old_pc = pc; execute_thumb_instruction(); cycles_remaining -= cycles_per_instruction; } while(cycles_remaining > 0);