fix unused/uninitalized warnings

This commit is contained in:
grischka 2009-05-11 18:46:39 +02:00
parent 40f5ce002e
commit 03c787d6ce
2 changed files with 4 additions and 0 deletions

View file

@ -84,6 +84,8 @@ int tcc_output_coff(TCCState *s1, FILE *f)
Section *stext, *sdata, *sbss; Section *stext, *sdata, *sbss;
int i, NSectionsToOutput = 0; int i, NSectionsToOutput = 0;
Coff_str_table = pCoff_str_table = NULL;
stext = FindSection(s1, ".text"); stext = FindSection(s1, ".text");
sdata = FindSection(s1, ".data"); sdata = FindSection(s1, ".data");
sbss = FindSection(s1, ".bss"); sbss = FindSection(s1, ".bss");

View file

@ -509,7 +509,9 @@ static void relocate_section(TCCState *s1, Section *s)
int type, sym_index; int type, sym_index;
unsigned char *ptr; unsigned char *ptr;
unsigned long val, addr; unsigned long val, addr;
#if defined TCC_TARGET_I386 || defined TCC_TARGET_X86_64
int esym_index; int esym_index;
#endif
sr = s->reloc; sr = s->reloc;
rel_end = (ElfW_Rel *)(sr->data + sr->data_offset); rel_end = (ElfW_Rel *)(sr->data + sr->data_offset);