diff options
author | Nick Clifton <nickc@redhat.com> | 2005-07-05 15:07:46 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2005-07-05 15:07:46 +0000 |
commit | 3ec2b351bd81ef7a827c8853e04c5612d00be84a (patch) | |
tree | e1431249747d706a97814415d8cd8df3fd5d4382 /bfd | |
parent | 9d8504b17f98d4fc4a524395563fa67a4fe8d2bc (diff) | |
download | gdb-3ec2b351bd81ef7a827c8853e04c5612d00be84a.zip gdb-3ec2b351bd81ef7a827c8853e04c5612d00be84a.tar.gz gdb-3ec2b351bd81ef7a827c8853e04c5612d00be84a.tar.bz2 |
Fix compile time warnings from a GCC 4.0 compiler
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/elf64-ppc.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e7cdd85..67a8e79 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2005-07-05 Nick Clifton <nickc@redhat.com> + + * elf64-ppc.c (ppc64_elf_info_to_howto): Fix typo. + 2005-05-07 Paul Brook <paul@codesourcery.com> * config.bfd: Add separate case for ppc-vxworks. 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]; } |