]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
unstrip: Remove unused variable.
authorRoland McGrath <roland@redhat.com>
Wed, 9 Feb 2011 03:48:02 +0000 (19:48 -0800)
committerRoland McGrath <roland@redhat.com>
Wed, 9 Feb 2011 03:48:02 +0000 (19:48 -0800)
src/ChangeLog
src/unstrip.c

index c202fd3f256b59902d2e3ae56ef63372e2a11c23..fcdee1a9171b8904889a802c27f53a36d63d824c 100644 (file)
@@ -1,5 +1,7 @@
 2011-02-08  Roland McGrath  <roland@redhat.com>
 
+       * unstrip.c (copy_elided_sections): Remove unused variable.
+
        * elflint.c (check_dynamic): Remove unused variables.
 
        * elflint.c (check_symtab): Warn about missing xndx section only once.
index 443cd620d3cc04a902f8164864e825473aa24368..3283d7360960d0d43f29840118734a950ac670e8 100644 (file)
@@ -1,5 +1,5 @@
 /* Combine stripped files with separate symbols and debug information.
-   Copyright (C) 2007-2010 Red Hat, Inc.
+   Copyright (C) 2007-2011 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Written by Roland McGrath <roland@redhat.com>, 2007.
 
@@ -1301,7 +1301,6 @@ more sections in stripped file than debug file -- arguments reversed?"));
   /* Match each debuginfo section with its corresponding stripped section.  */
   bool check_prelink = false;
   Elf_Scn *unstripped_symtab = NULL;
-  size_t unstripped_strtab_ndx = SHN_UNDEF;
   size_t alloc_avail = 0;
   scn = NULL;
   while ((scn = elf_nextscn (unstripped, scn)) != NULL)
@@ -1313,7 +1312,6 @@ more sections in stripped file than debug file -- arguments reversed?"));
       if (shdr->sh_type == SHT_SYMTAB)
        {
          unstripped_symtab = scn;
-         unstripped_strtab_ndx = shdr->sh_link;
          continue;
        }