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
8484 Section *stext, *sdata, *sbss;
8585 int i, NSectionsToOutput = 0;
8686
87+ Coff_str_table = pCoff_str_table = NULL;
88+
8789 stext = FindSection(s1, ".text");
8890 sdata = FindSection(s1, ".data");
8991 sbss = FindSection(s1, ".bss");
tccelf.c+2−0
@@ -509,7 +509,9 @@ static void relocate_section(TCCState *s1, Section *s) · 508 unmodified lines
509509 int type, sym_index;
510510 unsigned char *ptr;
511511 unsigned long val, addr;
512+#if defined TCC_TARGET_I386 || defined TCC_TARGET_X86_64
512513 int esym_index;
514+#endif
513515
514516 sr = s->reloc;
515517 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