This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

[committed] Fix unused variable warning in elf32-arm.c


Trunk GCC picked up some variables that became unused after the
recent attribute changes.  Tested on arm-linux-gnueabi and applied
to trunk and branch.

Richard


bfd/
	* elf32-arm.c (elf32_arm_merge_eabi_attributes): Remove unused
	variables.

Index: bfd/elf32-arm.c
===================================================================
--- bfd/elf32-arm.c	2010-11-10 14:51:36.000000000 +0000
+++ bfd/elf32-arm.c	2010-11-10 14:51:54.000000000 +0000
@@ -9904,9 +9904,6 @@ elf32_arm_merge_eabi_attributes (bfd *ib
 {
   obj_attribute *in_attr;
   obj_attribute *out_attr;
-  obj_attribute_list *in_list;
-  obj_attribute_list *out_list;
-  obj_attribute_list **out_listp;
   /* Some tags have 0 = don't care, 1 = strong requirement,
      2 = weak requirement.  */
   static const int order_021[3] = {0, 2, 1};
@@ -10417,10 +10414,6 @@ elf32_arm_merge_eabi_attributes (bfd *ib
     return FALSE;
 
   /* Check for any attributes not known on ARM.  */
-  in_list = elf_other_obj_attributes_proc (ibfd);
-  out_listp = &elf_other_obj_attributes_proc (obfd);
-  out_list = *out_listp;
-
   result &= _bfd_elf_merge_unknown_attribute_list (ibfd, obfd);
 
   return result;


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