From 3b4989b179f6058ac4e4ca5139777ef2464d4534 Mon Sep 17 00:00:00 2001 From: Daniel Beer Date: Thu, 28 Oct 2010 14:11:14 +1300 Subject: [PATCH] Fixed warning emitted by some gcc versions for dis.c. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) dis.c:41: warning: ‘arg’ may be used uninitialized in this function --- dis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dis.c b/dis.c index dc9840f..b18428b 100644 --- a/dis.c +++ b/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); int subtype = (op >> 4) & 0xf; int have_arg = 0; - address_t arg; + address_t arg = 0; /* Parameters common to most cases */ insn->op = MSP430_OP_MOVA;