This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix MIPS bfd/elfxx-mips.c compile warning.


Greetings.

This patch fixes a compile warning which gets turned into an
error and prevents cross building of gdb. It my be worthless,
but that's for you to decided.

-Steve

Index: elfxx-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/elfxx-mips.c,v
retrieving revision 1.149
diff -u -r1.149 elfxx-mips.c
--- elfxx-mips.c	17 Aug 2005 10:04:26 -0000	1.149
+++ elfxx-mips.c	27 Aug 2005 23:04:41 -0000
@@ -6942,7 +6942,7 @@
   for (rel = relocs; rel < relend; ++rel)
     {
       const char *name;
-      bfd_vma value;
+      bfd_vma value = 0;
       reloc_howto_type *howto;
       bfd_boolean require_jalx;
       /* TRUE if the relocation is a RELA relocation, rather than a

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]