History

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()

Detlef Riekenberg committed 4 years ago

Commit aea68db1 parent ac42d682 files · +3 −0Browse files

Unified · Split

2 files
  1. arm-asm.c +1 −0
  2. arm64-link.c +2 −0
arm-asm.c+1−0
@@ -77,6 +77,7 @@ static int asm_parse_vfp_regvar(int t, int double_precision) · 76 unmodified lines
7777 return -1;
7878 }
7979
80+__attribute__((unused))
8081 static int asm_parse_vfp_status_regvar(int t)
8182 {
8283 switch (t) {
arm64-link.c+2−0
@@ -90,6 +90,7 @@ int gotplt_entry_type (int reloc_type) · 89 unmodified lines
9090 return -1;
9191 }
9292
93+__attribute__((unused))
9394 ST_FUNC unsigned create_plt_entry(TCCState *s1, unsigned got_offset, struct sym_attr *attr)
9495 {
9596 Section *plt = s1->plt;
@@ -109,6 +110,7 @@ ST_FUNC unsigned create_plt_entry(TCCState *s1, unsigned got_offset, struct sym_ · 13 unmodified lines
109110
110111 /* relocate the PLT: compute addresses and offsets in the PLT now that final
111112 address for PLT and GOT are known (see fill_program_header) */
113+__attribute__((unused))
112114 ST_FUNC void relocate_plt(TCCState *s1)
113115 {
114116 uint8_t *p, *p_end;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t