From ba99a70cd88fd702d75b103fbadba380ca6c36bd Mon Sep 17 00:00:00 2001 From: Edmund Grimley Evans Date: Thu, 19 Nov 2015 18:26:47 +0000 Subject: Trivial changes to avoid some compiler warnings. --- tccasm.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tccasm.c') diff --git a/tccasm.c b/tccasm.c index 3cbae19..044db83 100644 --- a/tccasm.c +++ b/tccasm.c @@ -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; -- cgit v1.3.1