summary refs log tree commit diff
path: root/rega.c
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 /rega.c
parent498af259eb087e38f22c7ba49615cd38e271fabd (diff)
downloadroux-6f45894c7f5f145208e0fce4344b2b87eb8ae722.tar.gz
silence some warnings
Diffstat (limited to 'rega.c')
-rw-r--r--rega.c4
1 files changed, 3 insertions, 1 deletions
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;