MONDAY, OCTOBER 19, 2026
bfd/m32c — Proposed
bfd/m32c: remove unused bytes_saved variable
Removes an unused variable from bfd/elf32-m32c.c to fix compiler warnings.
This patch removes the unused bytes_saved variable from bfd/elf32-m32c.c. A recent clang compiler version started flagging this variable as unused, leading to a build error. The variable has been present but unused since 2006.
In Details
The binutils BFD library contains target-specific code for various object file formats. This patch cleans up unused code in the m32c target backend, specifically removing a variable that was declared but never utilized, which avoids compiler warnings related to unused variables.
For Context
- BFD
- Binary File Descriptor. A library within binutils that provides a common interface for reading and writing various binary object file formats.
- m32c
- A family of microcontrollers from Renesas Electronics.
- unused-but-set-variable
- A compiler warning indicating a variable that has been assigned a value but is never subsequently read. This often suggests dead code.