This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

More warning fixes


bfd/ChangeLog
	* elf64-mips.c (UNUSED_RELOC): Define.
	(mips_elf64_howto_table_rel): Use it.
	(mips_elf64_howto_table_rela): Here too.
	(mips_elf64_write_relocs): Fix signed/unsigned warning.

-- 
Alan Modra

Index: elf64-mips.c
===================================================================
RCS file: /cvs/src/src/bfd/elf64-mips.c,v
retrieving revision 1.15
diff -u -p -r1.15 elf64-mips.c
--- elf64-mips.c	2001/05/03 04:46:27	1.15
+++ elf64-mips.c	2001/08/17 09:10:51
@@ -90,6 +90,8 @@ static boolean mips_elf64_write_armap
 
 /* The relocation table used for SHT_REL sections.  */
 
+#define UNUSED_RELOC(num) { num, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
+
 static reloc_howto_type mips_elf64_howto_table_rel[] =
 {
   /* No relocation.  */
@@ -291,9 +293,9 @@ static reloc_howto_type mips_elf64_howto
 	 0xffffffff,		/* dst_mask */
 	 false),		/* pcrel_offset */
 
-    { 13 },
-    { 14 },
-    { 15 },
+  UNUSED_RELOC (13),
+  UNUSED_RELOC (14),
+  UNUSED_RELOC (15),
 
   /* A 5 bit shift field.  */
   HOWTO (R_MIPS_SHIFT5,		/* type */
@@ -845,9 +847,9 @@ static reloc_howto_type mips_elf64_howto
 	 0xffffffff,		/* dst_mask */
 	 false),		/* pcrel_offset */
 
-    { 13 },
-    { 14 },
-    { 15 },
+  UNUSED_RELOC (13),
+  UNUSED_RELOC (14),
+  UNUSED_RELOC (15),
 
   /* A 5 bit shift field.  */
   HOWTO (R_MIPS_SHIFT5,		/* type */
@@ -1813,7 +1815,7 @@ mips_elf64_write_relocs (abfd, sec, data
     }
 
   BFD_ASSERT (ext_rela - (Elf64_Mips_External_Rela *) rela_hdr->contents
-	      == count);
+	      == (int) count);
 }
 
 /* Irix 6 defines a brand new archive map format, so that they can


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