From 4514843bc85b7d5cfd0a6048361ba7314e6a1580 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Tue, 24 Apr 2007 13:21:32 +0000 Subject: [PATCH] Fix compile time warning (at -O3 with gcc 4.1.2) --- opcodes/ChangeLog | 4 ++++ opcodes/arm-dis.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 91a280eed0..e935f460fb 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2007-04-24 Nick Clifton + + * arm-dis.c (print_insn): Initialise type. + 2007-04-24 Alan Modra * cgen-types.h: Include bfd_stdint.h, not stdint.h. diff --git a/opcodes/arm-dis.c b/opcodes/arm-dis.c index 0c0e9641b1..cf67b5fdd7 100644 --- a/opcodes/arm-dis.c +++ b/opcodes/arm-dis.c @@ -3987,7 +3987,7 @@ print_insn (bfd_vma pc, struct disassemble_info *info, bfd_boolean little) bfd_vma addr; int n; int last_sym = -1; - enum map_type type; + enum map_type type = MAP_ARM; if (pc <= last_mapping_addr) last_mapping_sym = -1; -- 2.11.0