diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2011-04-13 07:41:19 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-04-13 07:41:19 -0500 |
commit | 7f7454ec296b3403b4accec55349a8f0232d3576 (patch) | |
tree | cd5c490578793d25154b9eeab08cd99dd5c6e8ae /hw/milkymist-pfpu.c | |
parent | 2d56a546a73ca3f588196f4065621ff5f11f50e4 (diff) |
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 <aliguori@us.ibm.com>
Diffstat (limited to 'hw/milkymist-pfpu.c')
-rw-r--r-- | hw/milkymist-pfpu.c | 2 |
1 files changed, 1 insertions, 1 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) { |