Fix compile time warning (at -O3 with gcc 4.1.2)
authorNick Clifton <nickc@redhat.com>
Tue, 24 Apr 2007 13:21:32 +0000 (13:21 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 24 Apr 2007 13:21:32 +0000 (13:21 +0000)
opcodes/ChangeLog
opcodes/arm-dis.c

index 91a280eed065aed5581a9ab1ec381f69a42bad4d..e935f460fb626d9e4e2f3cc8d27baab21b606290 100644 (file)
@@ -1,3 +1,7 @@
+2007-04-24  Nick Clifton  <nickc@redhat.com>
+
+       * arm-dis.c (print_insn): Initialise type.
+
 2007-04-24  Alan Modra  <amodra@bigpond.net.au>
 
        * cgen-types.h: Include bfd_stdint.h, not stdint.h.
index 0c0e9641b1768b6a7d1ed7f31e377ca80ce28361..cf67b5fdd736076806bf0b78aaf27b6da1b31a46 100644 (file)
@@ -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;