From: Alan Modra <amodra@bigpond.net.au>
To: binutils@sourceware.cygnus.com
Subject: More warning fixes
Date: Fri, 17 Aug 2001 02:21:00 -0000 [thread overview]
Message-ID: <20010817185059.A31523@bubble.sa.bigpond.net.au> (raw)
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);
}
\f
/* Irix 6 defines a brand new archive map format, so that they can
next reply other threads:[~2001-08-17 2:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-17 2:21 Alan Modra [this message]
2005-02-22 18:31 more " Alan Modra
2007-01-12 3:12 Alan Modra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010817185059.A31523@bubble.sa.bigpond.net.au \
--to=amodra@bigpond.net.au \
--cc=binutils@sourceware.cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).