[PATCH] bfd/nds32: remove unused got_size variable
Alan Modra
amodra@gmail.com
Tue Nov 10 04:51:31 GMT 2026
On Fri, Oct 30, 2026 at 11:00:32AM -0400, Simon Marchi wrote:
> Building bfd with a recent clang fails with:
>
> /home/smarchi/src/binutils-gdb/bfd/elf32-nds32.c:154:13: error: variable 'got_size' set but not used [-Werror,-Wunused-but-set-global]
>
> The variable has been unused since it was introduced by commit
> 35c081572f32 ("Add support for Andes NDS32:", 2013-12-13). Remove it,
> along with the comment that describes it. The branches handling the
> .got and .got.plt sections in nds32_elf_late_size_sections become
> empty, merge them with the one handling .plt.
OK.
--
Alan Modra
More information about the Binutils
mailing list