From ff4e5aab2c44fe5ec996594482a0967e95b54984 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Wed, 17 Apr 2019 22:21:46 +0200 Subject: avoid some gcc warnings In this case, the potential truncations flagged by gcc are only affecting debug information. --- amd64/sysv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'amd64') diff --git a/amd64/sysv.c b/amd64/sysv.c index 86c59bf..ea9b2d2 100644 --- a/amd64/sysv.c +++ b/amd64/sysv.c @@ -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; -- cgit 1.4.1