Trivial changes to avoid some compiler warnings.

This commit is contained in:
Edmund Grimley Evans
2015-11-19 18:26:47 +00:00
parent 553242c18a
commit ba99a70cd8
5 changed files with 12 additions and 9 deletions

View File

@ -550,7 +550,10 @@ static void asm_parse_directive(TCCState *s1)
n = asm_int_expr(s1);
next();
}
sprintf(sname, (n?".%s%d":".%s"), get_tok_str(tok1, NULL), n);
if (n)
sprintf(sname, ".%s%d", get_tok_str(tok1, NULL), n);
else
sprintf(sname, ".%s", get_tok_str(tok1, NULL));
use_section(s1, sname);
}
break;