[binutils-gdb] libctf: Remove unused variable initialized to itself

Alan Modra via Binutils-cvs <[email protected]>
Newsgroups gmane.comp.gnu.binutils.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=102692fa14ecf2b578c1c69febab8124dbaaa3fe

commit 102692fa14ecf2b578c1c69febab8124dbaaa3fe
Author: Michael Forney <[email protected]>
Date:   Fri Apr 24 22:42:37 2026 -0700

    libctf: Remove unused variable initialized to itself
    
            * ctf-link.c: Remove unused variable initialized to itself.

Diff:
---
 libctf/ctf-link.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libctf/ctf-link.c b/libctf/ctf-link.c
index 10bef42602d..9fdd39fdb95 100644
--- a/libctf/ctf-link.c
+++ b/libctf/ctf-link.c
@@ -1649,7 +1649,7 @@ ctf_link_shuffle_syms (ctf_dict_t *fp)
   ctf_in_flight_dynsym_t *did, *nid;
   ctf_next_t *i = NULL;
   int err = ENOMEM;
-  void *name_, *sym_;
+  void *sym_;
 
   if (fp->ctf_stypes > 0)
     return ctf_set_errno (fp, ECTF_RDONLY);
@@ -1733,9 +1733,8 @@ ctf_link_shuffle_syms (ctf_dict_t *fp)
 				   sizeof (ctf_link_sym_t *))) == NULL)
     goto err;
 
-  while ((err = ctf_dynhash_next (fp->ctf_dynsyms, &i, &name_, &sym_)) == 0)
+  while ((err = ctf_dynhash_next (fp->ctf_dynsyms, &i, NULL, &sym_)) == 0)
     {
-      const char *name = (const char *) name;
       ctf_link_sym_t *symp = (ctf_link_sym_t *) sym_;
 
       if (!ctf_assert (fp, symp->st_symidx <= fp->ctf_dynsymmax))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.