From 7f7454ec296b3403b4accec55349a8f0232d3576 Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Wed, 13 Apr 2011 07:41:19 -0500 Subject: 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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/milkymist-pfpu.c') diff --git a/hw/milkymist-pfpu.c b/hw/milkymist-pfpu.c index 4831e00b8..94e631510 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) { -- cgit v1.2.3