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

index 8b74ca6d5217e5f6cb5bb5edae6708f35c224f27..94d6acadef24738b4f6b52ead405e44424e58460 100644 (file)
@@ -1,3 +1,7 @@
+2011-02-08  Roland McGrath  <roland@redhat.com>
+
+       * ldgeneric.c (check_for_duplicate2): Remove unused variable.
+
 2011-01-06  Roland McGrath  <roland@redhat.com>
 
        * strip.c (handle_elf): Under --strip-sections, remove all
index afe8bee62356b7867160d41e438403123555355d..152b23a8ce06e51af73a3bee3edac946c7cd4d21 100644 (file)
@@ -1,5 +1,5 @@
 /* Pedantic checking of ELF files compliance with gABI/psABI spec.
-   Copyright (C) 2001-2010 Red Hat, Inc.
+   Copyright (C) 2001-2011 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2001.
 
@@ -697,9 +697,10 @@ section [%2d] '%s': symbol %zu: invalid name value\n"),
        {
          if (xndxdata == NULL)
            {
-             ERROR (gettext ("\
+             if (!no_xndx_warned)
+               ERROR (gettext ("\
 section [%2d] '%s': symbol %zu: too large section index but no extended section index section\n"),
-                    idx, section_name (ebl, idx), cnt);
+                      idx, section_name (ebl, idx), cnt);
              no_xndx_warned = true;
            }
          else if (xndx < SHN_LORESERVE)
index b2ea2f906e60ba57546b90f1d14276707651640a..d51b54fe3a3723853c64201ad0da5b04e02a512a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009 Red Hat, Inc.
+/* Copyright (C) 2001-2011 Red Hat, Inc.
    This file is part of Red Hat elfutils.
    Written by Ulrich Drepper <drepper@redhat.com>, 2001.
 
@@ -285,12 +285,10 @@ static int
 check_for_duplicate2 (struct usedfiles *newp, struct usedfiles *list)
 {
   struct usedfiles *first;
-  struct usedfiles *prevp;
 
   if (list == NULL)
     return 0;
 
-  prevp = list;
   list = first = list->next;
   do
     {