This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Fix compile time warning compiling ARC port.
- From: Nick Clifton <nickc at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 8 Oct 2015 11:34:25 -0000
- Subject: [binutils-gdb] Fix compile time warning compiling ARC port.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3f94e60d92d9bf67f1f8cbc19ffbfe5d28db7fcf
commit 3f94e60d92d9bf67f1f8cbc19ffbfe5d28db7fcf
Author: Nick Clifton <nickc@redhat.com>
Date: Thu Oct 8 12:31:26 2015 +0100
Fix compile time warning compiling ARC port.
Diff:
---
opcodes/ChangeLog | 4 ++++
opcodes/arc-dis.c | 3 ++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 1effd13..4dd1946 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,7 @@
+2015-10-08 Nick Clifton <nickc@redhat.com>
+
+ * arc-dis.c (print_insn_arc): Initiallise insn array.
+
2015-10-07 Yao Qi <yao.qi@linaro.org>
* aarch64-dis.c (aarch64_ext_sysins_op): Access field
diff --git a/opcodes/arc-dis.c b/opcodes/arc-dis.c
index 516fc22..6319d8a 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;