From 7f7454ec296b3403b4accec55349a8f0232d3576 Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Wed, 13 Apr 2011 07:41:19 -0500 Subject: [PATCH] lm32: fix build breakage due to uninitialized variable 'r' gcc 4.5.2 correctly complains that r is potentially uninitialized in this function. Signed-off-by: Anthony Liguori --- hw/milkymist-pfpu.c | 2 +- roms/seabios | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/milkymist-pfpu.c b/hw/milkymist-pfpu.c index 4831e00b81..94e631510f 100644 --- a/hw/milkymist-pfpu.c +++ b/hw/milkymist-pfpu.c @@ -163,7 +163,7 @@ static int pfpu_decode_insn(MilkymistPFPUState *s) uint32_t reg_b = (insn >> 11) & 0x7f; uint32_t op = (insn >> 7) & 0xf; uint32_t reg_d = insn & 0x7f; - uint32_t r; + uint32_t r = 0; int latency = 0; switch (op) { diff --git a/roms/seabios b/roms/seabios index cc975646af..06d0bdd9e2 160000 --- a/roms/seabios +++ b/roms/seabios @@ -1 +1 @@ -Subproject commit cc975646af69f279396d4d5e1379ac6af80ee637 +Subproject commit 06d0bdd9e2e20377b3180e4986b14c8549b393e4 -- 2.11.0