From 6f45894c7f5f145208e0fce4344b2b87eb8ae722 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Wed, 15 Mar 2023 22:07:18 +0100 Subject: silence some warnings --- rega.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rega.c') diff --git a/rega.c b/rega.c index c97d1e1..d2d42e0 100644 --- a/rega.c +++ b/rega.c @@ -239,6 +239,8 @@ pmrec(enum PMStat *status, int i, int *k) c = -1; emit(Ocopy, pm[i].cls, pm[i].dst, pm[i].src, R); break; + default: + die("unreachable"); } status[i] = Moved; return c; @@ -668,7 +670,7 @@ rega(Fn *fn) b1->link = blist; blist = b1; fn->nblk++; - (void)!snprintf(b1->name, sizeof(b1->name), "%s_%s", b->name, s->name); + snprintf(b1->name, NString, "%s_%s", b->name, s->name); b1->nins = &insb[NIns] - curi; stmov += b1->nins; stblk += 1; -- cgit 1.4.1