aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfnn-riscv.c
diff options
context:
space:
mode:
authorNelson Chu <nelson.chu@sifive.com>2021-07-06 17:27:22 +0800
committerNelson Chu <nelson.chu@sifive.com>2021-07-06 17:31:14 +0800
commit70a590636b4fcb0818233c65c92163254140a2fd (patch)
treeaa52eda07c67efd8d8d39996a717179ddb2961ae /bfd/elfnn-riscv.c
parent752e419362eae28f7fcf6347b333347e472bc10f (diff)
downloadgdb-70a590636b4fcb0818233c65c92163254140a2fd.zip
gdb-70a590636b4fcb0818233c65c92163254140a2fd.tar.gz
gdb-70a590636b4fcb0818233c65c92163254140a2fd.tar.bz2
RISC-V: Fix the build broken with -Werror.
ChangeLog: bfd/ * elfnn-riscv.c(riscv_elf_additional_program_headers): Removed the unused variable s. (riscv_elf_modify_segment_map): Added ATTRIBUTE_UNUSED for the unused parameter info.
Diffstat (limited to 'bfd/elfnn-riscv.c')
-rw-r--r--bfd/elfnn-riscv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/elfnn-riscv.c b/bfd/elfnn-riscv.c
index 4db3ca4..2dfa635 100644
--- a/bfd/elfnn-riscv.c
+++ b/bfd/elfnn-riscv.c
@@ -5164,7 +5164,6 @@ static int
riscv_elf_additional_program_headers (bfd *abfd,
struct bfd_link_info *info ATTRIBUTE_UNUSED)
{
- asection *s;
int ret = 0;
/* See if we need a PT_RISCV_ATTRIBUTES segment. */
@@ -5176,7 +5175,7 @@ riscv_elf_additional_program_headers (bfd *abfd,
static bool
riscv_elf_modify_segment_map (bfd *abfd,
- struct bfd_link_info *info)
+ struct bfd_link_info *info ATTRIBUTE_UNUSED)
{
asection *s;
struct elf_segment_map *m, **pm;