From: Nick Clifton Date: Thu, 8 Oct 2015 11:31:26 +0000 (+0100) Subject: Fix compile time warning compiling ARC port. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3f94e60d92d9bf67f1f8cbc19ffbfe5d28db7fcf;p=binutils-gdb.git Fix compile time warning compiling ARC port. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 1effd130aef..4dd19462326 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2015-10-08 Nick Clifton + + * arc-dis.c (print_insn_arc): Initiallise insn array. + 2015-10-07 Yao Qi * aarch64-dis.c (aarch64_ext_sysins_op): Access field diff --git a/opcodes/arc-dis.c b/opcodes/arc-dis.c index 516fc225426..6319d8a4eba 100644 --- a/opcodes/arc-dis.c +++ b/opcodes/arc-dis.c @@ -118,7 +118,8 @@ print_insn_arc (bfd_vma memaddr, int status; unsigned int i; int insnLen = 0; - unsigned insn[2], isa_mask; + unsigned insn[2] = { 0, 0 }; + unsigned isa_mask; const unsigned char *opidx; const unsigned char *flgidx; const struct arc_opcode *opcode;