silence format warning more reliably

This commit is contained in:
Quentin Carbonneaux 2023-03-16 16:22:11 +01:00
parent 6f45894c7f
commit 011dfc839d
6 changed files with 15 additions and 5 deletions

View file

@ -512,7 +512,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);
fmt(bn->name, "%s.%d", b->name, b->visit);
bn->loop = b->loop;
bn->link = b->link;
b->link = bn;