From: Roland McGrath Date: Wed, 9 Feb 2011 03:45:12 +0000 (-0800) Subject: ld: Remove an unused variable. X-Git-Tag: elfutils-0.152~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fd992543185126eb0280c1ee0883e073020499b4;p=thirdparty%2Felfutils.git ld: Remove an unused variable. --- diff --git a/src/ChangeLog b/src/ChangeLog index 8b74ca6d5..94d6acade 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-02-08 Roland McGrath + + * ldgeneric.c (check_for_duplicate2): Remove unused variable. + 2011-01-06 Roland McGrath * strip.c (handle_elf): Under --strip-sections, remove all diff --git a/src/elflint.c b/src/elflint.c index afe8bee62..152b23a8c 100644 --- a/src/elflint.c +++ b/src/elflint.c @@ -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 , 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) diff --git a/src/ldgeneric.c b/src/ldgeneric.c index b2ea2f906..d51b54fe3 100644 --- a/src/ldgeneric.c +++ b/src/ldgeneric.c @@ -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 , 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 {