aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-ppc.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-07-05 15:07:46 +0000
committerNick Clifton <nickc@redhat.com>2005-07-05 15:07:46 +0000
commit3ec2b351bd81ef7a827c8853e04c5612d00be84a (patch)
treee1431249747d706a97814415d8cd8df3fd5d4382 /bfd/elf64-ppc.c
parent9d8504b17f98d4fc4a524395563fa67a4fe8d2bc (diff)
downloadgdb-3ec2b351bd81ef7a827c8853e04c5612d00be84a.zip
gdb-3ec2b351bd81ef7a827c8853e04c5612d00be84a.tar.gz
gdb-3ec2b351bd81ef7a827c8853e04c5612d00be84a.tar.bz2
Fix compile time warnings from a GCC 4.0 compiler
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r--bfd/elf64-ppc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 656e822..f05262b 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -2121,8 +2121,8 @@ ppc64_elf_info_to_howto (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr,
/ sizeof (ppc64_elf_howto_table[0])))
{
(*_bfd_error_handler) (_("%B: invalid relocation type %d"),
- abfd, (int) r_type);
- r_type = R_PPC64_NONE;
+ abfd, (int) type);
+ type = R_PPC64_NONE;
}
cache_ptr->howto = ppc64_elf_howto_table[type];
}