History

Fix set but not used error in arm64-link.c

Thomas Preud'homme committed 9 years ago

Commit 23726391 parent 38117941 file · +4 −5Browse files

Unified · Split

arm64-link.c+4−5
@@ -40,11 +40,10 @@ void relocate_init(Section *sr) {} · 39 unmodified lines
4040
4141 void relocate(TCCState *s1, ElfW_Rel *rel, int type, char *ptr, addr_t addr, addr_t val)
4242 {
43− ElfW(Sym) *sym;
44− int sym_index;
45−
46− sym_index = ELFW(R_SYM)(rel->r_info);
47− sym = &((ElfW(Sym) *)symtab_section->data)[sym_index];
43+ int sym_index = ELFW(R_SYM)(rel->r_info);
44+#ifdef DEBUG_RELOC
45+ ElfW(Sym) *sym = &((ElfW(Sym) *)symtab_section->data)[sym_index];
46+#endif
4847
4948 switch(type) {
5049 case R_AARCH64_ABS64:

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