summaryrefslogtreecommitdiffstats
path: root/binutils/ar.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-12-11 13:42:17 +0000
committerNick Clifton <nickc@redhat.com>2009-12-11 13:42:17 +0000
commit91d6fa6a035cc7d0b7be5c99c194a64cb80924b0 (patch)
tree214507c313b77d619b52afcae2af0b02c9fa700b /binutils/ar.c
parent01fe1b4183324882e88e8c64748bffdc69ea3a9c (diff)
downloadppe42-binutils-91d6fa6a035cc7d0b7be5c99c194a64cb80924b0.tar.gz
ppe42-binutils-91d6fa6a035cc7d0b7be5c99c194a64cb80924b0.zip
Add -Wshadow to the gcc command line options used when compiling the binutils.
Fix up all warnings generated by the addition of this switch.
Diffstat (limited to 'binutils/ar.c')
-rw-r--r--binutils/ar.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/binutils/ar.c b/binutils/ar.c
index 5bffd50a66..15a7b477bf 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -1168,14 +1168,14 @@ move_members (bfd *arch, char **files_to_move)
{
/* Move this file to the end of the list - first cut from
where it is. */
- bfd *link;
+ bfd *link_bfd;
*current_ptr_ptr = current_ptr->archive_next;
/* Now glue to end */
after_bfd = get_pos_bfd (&arch->archive_next, pos_end, NULL);
- link = *after_bfd;
+ link_bfd = *after_bfd;
*after_bfd = current_ptr;
- current_ptr->archive_next = link;
+ current_ptr->archive_next = link_bfd;
if (verbose)
printf ("m - %s\n", *files_to_move);
OpenPOWER on IntegriCloud