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. --- arm64/abi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arm64') diff --git a/arm64/abi.c b/arm64/abi.c index 846ac87..8bc9c20 100644 --- a/arm64/abi.c +++ b/arm64/abi.c @@ -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; -- cgit 1.4.1