binutils Newspaper
JUNE 15, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
libctf

Libctf: Remove unused variable initialized to itself

Removes an unused variable initialized to itself in libctf/ctf-link.c.

This commit removes the unused variable name_ in ctf_link_shuffle_syms in libctf/ctf-link.c. This variable was initialized but never used, and removing it simplifies the code.

In Details

The commit removes an unused variable, name_, from the ctf_link_shuffle_syms function within libctf/ctf-link.c. This function shuffles symbols in a CTF (Compact Type Format) dictionary. The variable name_ was assigned the result of ctf_dynhash_next but never actually used, so it's dead code.

For Context

libctf is a library for handling Compact Type Format (CTF) data, a compact representation of debugging information. This commit removes an unused variable in the ctf-link.c file, which reduces code clutter and improves readability. The removed variable was initialized but never used, making it safe to remove.

Filed Under: libctfcode cleanup