From aea68dbb40b544ecf17d90665aaf13ee1e2f905d Mon Sep 17 00:00:00 2001 From: Detlef Riekenberg Date: Tue, 12 Apr 2022 02:11:06 +0200 Subject: [PATCH] arm-asm, arm64-link: Silence warnings for unused functions The code needs to be fixed: use the functions or remove them. arm-asm.c: asm_parse_vfp_regvar() arm64-link: gotplt_entry_type() create_plt_entry() Signed-off-by: Detlef Riekenberg --- arm-asm.c | 1 + arm64-link.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arm-asm.c b/arm-asm.c index 45ccab5d..a4f974f6 100644 --- a/arm-asm.c +++ b/arm-asm.c @@ -77,6 +77,7 @@ static int asm_parse_vfp_regvar(int t, int double_precision) return -1; } +__attribute__((unused)) static int asm_parse_vfp_status_regvar(int t) { switch (t) { diff --git a/arm64-link.c b/arm64-link.c index e4305fe5..99916693 100644 --- a/arm64-link.c +++ b/arm64-link.c @@ -90,6 +90,7 @@ int gotplt_entry_type (int reloc_type) return -1; } +__attribute__((unused)) ST_FUNC unsigned create_plt_entry(TCCState *s1, unsigned got_offset, struct sym_attr *attr) { Section *plt = s1->plt; @@ -109,6 +110,7 @@ ST_FUNC unsigned create_plt_entry(TCCState *s1, unsigned got_offset, struct sym_ /* relocate the PLT: compute addresses and offsets in the PLT now that final address for PLT and GOT are known (see fill_program_header) */ +__attribute__((unused)) ST_FUNC void relocate_plt(TCCState *s1) { uint8_t *p, *p_end;