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>
This commit is contained in:
Anthony Liguori 2011-04-13 07:41:19 -05:00
parent 2d56a546a7
commit 7f7454ec29
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

@ -1 +1 @@
Subproject commit cc975646af69f279396d4d5e1379ac6af80ee637
Subproject commit 06d0bdd9e2e20377b3180e4986b14c8549b393e4