Fixed warning emitted by some gcc versions for dis.c.
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) dis.c:41: warning: ‘arg’ may be used uninitialized in this function
This commit is contained in:
parent
50f589b05c
commit
3b4989b179
2
dis.c
2
dis.c
|
@ -38,7 +38,7 @@ static int decode_00xx(const uint8_t *code, address_t offset,
|
||||||
uint16_t op = code[0] | (code[1] << 8);
|
uint16_t op = code[0] | (code[1] << 8);
|
||||||
int subtype = (op >> 4) & 0xf;
|
int subtype = (op >> 4) & 0xf;
|
||||||
int have_arg = 0;
|
int have_arg = 0;
|
||||||
address_t arg;
|
address_t arg = 0;
|
||||||
|
|
||||||
/* Parameters common to most cases */
|
/* Parameters common to most cases */
|
||||||
insn->op = MSP430_OP_MOVA;
|
insn->op = MSP430_OP_MOVA;
|
||||||
|
|
Loading…
Reference in New Issue