summary refs log tree commit diff
path: root/arm64
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2023-03-15 22:07:18 +0100
committerQuentin Carbonneaux <quentin@c9x.me>2023-03-15 22:07:18 +0100
commit6f45894c7f5f145208e0fce4344b2b87eb8ae722 (patch)
tree7e7fb7a24d21f3ea36e5d8b22b5b548e77c15236 /arm64
parent498af259eb087e38f22c7ba49615cd38e271fabd (diff)
downloadroux-6f45894c7f5f145208e0fce4344b2b87eb8ae722.tar.gz
silence some warnings
Diffstat (limited to 'arm64')
-rw-r--r--arm64/abi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arm64/abi.c b/arm64/abi.c
index 8ba4ffc..b9d557d 100644
--- a/arm64/abi.c
+++ b/arm64/abi.c
@@ -446,6 +446,7 @@ selcall(Fn *fn, Ins *i0, Ins *i1, Insl **ilp)
 			case 2: op = Ostoreh; break;
 			case 4:
 			case 8: op = store[*c->cls]; break;
+			default: die("unreachable");
 			}
 			emit(op, 0, R, i->arg[0], r);
 		} else {
@@ -546,7 +547,7 @@ split(Fn *fn, Blk *b)
 	idup(&bn->ins, curi, bn->nins);
 	curi = &insb[NIns];
 	bn->visit = ++b->visit;
-	(void)!snprintf(bn->name, NString, "%s.%d", b->name, b->visit);
+	snprintf(bn->name, NString, "%s.%d", b->name, b->visit);
 	bn->loop = b->loop;
 	bn->link = b->link;
 	b->link = bn;