mirror of
git://c9x.me/qbe.git
synced 2026-04-05 09:59:47 +00:00
avoid some gcc warnings
In this case, the potential truncations flagged by gcc are only affecting debug information.
This commit is contained in:
parent
60142f5d9b
commit
ff4e5aab2c
@ -493,7 +493,7 @@ split(Fn *fn, Blk *b)
|
||||
idup(&bn->ins, curi, bn->nins);
|
||||
curi = &insb[NIns];
|
||||
bn->visit = ++b->visit;
|
||||
snprintf(bn->name, NString, "%s.%d", b->name, b->visit);
|
||||
(void)!snprintf(bn->name, NString, "%s.%d", b->name, b->visit);
|
||||
bn->loop = b->loop;
|
||||
bn->link = b->link;
|
||||
b->link = bn;
|
||||
|
||||
@ -488,7 +488,7 @@ split(Fn *fn, Blk *b)
|
||||
idup(&bn->ins, curi, bn->nins);
|
||||
curi = &insb[NIns];
|
||||
bn->visit = ++b->visit;
|
||||
snprintf(bn->name, NString, "%s.%d", b->name, b->visit);
|
||||
(void)!snprintf(bn->name, NString, "%s.%d", b->name, b->visit);
|
||||
bn->loop = b->loop;
|
||||
bn->link = b->link;
|
||||
b->link = bn;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user