From 10bf8884b87d40f79b63f4e18a119f4b74ef921d Mon Sep 17 00:00:00 2001 From: OBattler Date: Tue, 2 May 2023 15:22:30 +0200 Subject: [PATCH] And another such warning (how is GCC unaware that it has literally evaluated every possible case?!). --- src/cpu/x87_ops_sf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu/x87_ops_sf.h b/src/cpu/x87_ops_sf.h index ad12b6515..e70556fea 100644 --- a/src/cpu/x87_ops_sf.h +++ b/src/cpu/x87_ops_sf.h @@ -109,7 +109,7 @@ fpu_save_environment(void) static uint32_t fpu_load_environment(void) { - unsigned offset; + unsigned offset = 0; switch ((cr0 & 1) | (cpu_state.op32 & 0x100)) { case 0x000: { /*16-bit real mode*/