Don't use C99 decls

we're consciously trying to write C90 compatible code, hence
no mixed declaration and code.
This commit is contained in:
Michael Matz 2018-12-21 01:03:05 +01:00
parent adfcf3b1dd
commit f68a1f50fd

View File

@ -870,10 +870,10 @@ static int prepare_dynamic_rel(TCCState *s1, Section *sr)
count = 0;
for_each_elem(sr, 0, rel, ElfW_Rel) {
type = ELFW(R_TYPE)(rel->r_info);
#if defined(TCC_TARGET_I386) || defined(TCC_TARGET_X86_64)
int sym_index = ELFW(R_SYM)(rel->r_info);
#endif
type = ELFW(R_TYPE)(rel->r_info);
switch(type) {
#if defined(TCC_TARGET_I386) || defined(TCC_TARGET_X86_64)
#if defined(TCC_TARGET_I386)