History

fix unused/uninitalized warnings

grischka committed 17 years ago

Commit 03c787d1 parent 40f5ce02 files · +4 −0Browse files

Unified · Split

2 files
  1. tcccoff.c +2 −0
  2. tccelf.c +2 −0
tcccoff.c+2−0
@@ -84,6 +84,8 @@ int tcc_output_coff(TCCState *s1, FILE *f) · 83 unmodified lines
84 Section *stext, *sdata, *sbss;84 Section *stext, *sdata, *sbss;
85 int i, NSectionsToOutput = 0;85 int i, NSectionsToOutput = 0;
86 86
87 Coff_str_table = pCoff_str_table = NULL;
88
87 stext = FindSection(s1, ".text");89 stext = FindSection(s1, ".text");
88 sdata = FindSection(s1, ".data");90 sdata = FindSection(s1, ".data");
89 sbss = FindSection(s1, ".bss");91 sbss = FindSection(s1, ".bss");
tccelf.c+2−0
@@ -509,7 +509,9 @@ static void relocate_section(TCCState *s1, Section *s) · 508 unmodified lines
509 int type, sym_index;509 int type, sym_index;
510 unsigned char *ptr;510 unsigned char *ptr;
511 unsigned long val, addr;511 unsigned long val, addr;
512#if defined TCC_TARGET_I386 || defined TCC_TARGET_X86_64
512 int esym_index;513 int esym_index;
514#endif
513 515
514 sr = s->reloc;516 sr = s->reloc;
515 rel_end = (ElfW_Rel *)(sr->data + sr->data_offset);517 rel_end = (ElfW_Rel *)(sr->data + sr->data_offset);

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