mirror of
git://c9x.me/qbe.git
synced 2026-04-05 09:59:47 +00:00
silent a few warnings
This commit is contained in:
parent
490799b772
commit
09192cdeab
5
all.h
5
all.h
@ -434,9 +434,8 @@ struct Typ {
|
||||
Sint,
|
||||
Sflt,
|
||||
Styp,
|
||||
};
|
||||
uint type:3;
|
||||
uint len:29; /* index in typ[] for Styp */
|
||||
} type;
|
||||
uint len; /* index in typ[] for Styp */
|
||||
} (*seg)[NSeg+1];
|
||||
};
|
||||
|
||||
|
||||
5
sysv.c
5
sysv.c
@ -26,8 +26,10 @@ classify(AClass *a, Typ *t, int *pn, int *pe)
|
||||
seg = t->seg[n];
|
||||
for (s=0; *pe<2; (*pe)++) {
|
||||
cls = &a->cls[*pe];
|
||||
for (; *pn<8 && seg[s].type!=Send; s++) {
|
||||
for (; *pn<8; s++) {
|
||||
switch (seg[s].type) {
|
||||
case Send:
|
||||
goto Done;
|
||||
case Spad:
|
||||
/* don't change anything */
|
||||
break;
|
||||
@ -44,6 +46,7 @@ classify(AClass *a, Typ *t, int *pn, int *pe)
|
||||
}
|
||||
*pn += seg[s].len;
|
||||
}
|
||||
Done:
|
||||
assert(*pn <= 8);
|
||||
*pn = 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user