diff options
author | Quentin Carbonneaux <quentin@c9x.me> | 2023-03-15 22:07:18 +0100 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2023-03-15 22:07:18 +0100 |
commit | 6f45894c7f5f145208e0fce4344b2b87eb8ae722 (patch) | |
tree | 7e7fb7a24d21f3ea36e5d8b22b5b548e77c15236 /rega.c | |
parent | 498af259eb087e38f22c7ba49615cd38e271fabd (diff) | |
download | roux-6f45894c7f5f145208e0fce4344b2b87eb8ae722.tar.gz |
silence some warnings
Diffstat (limited to 'rega.c')
-rw-r--r-- | rega.c | 4 |
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; |