* Dewarninged the lcc and q3asm source

* Removed traditional target platforms from the lcc build. This might break
  building lcc on Windows using nmake. Submit patches or be quiet :p
* Default target for lcc is now bytecode, so -Wf-target=bytecode is no longer
  needed on the lcc command line
This commit is contained in:
Tim Angus 2005-10-04 01:21:34 +00:00
parent 6797dcc705
commit c07dc8dbee
38 changed files with 390 additions and 390 deletions

View file

@ -81,7 +81,7 @@ static int initarray(int len, Type ty, int lev) {
do {
initializer(ty, lev);
n += ty->size;
if (len > 0 && n >= len || t != ',')
if ((len > 0 && n >= len) || t != ',')
break;
t = gettok();
} while (t != '}');
@ -99,7 +99,7 @@ static int initchar(int len, Type ty) {
(*IR->defstring)(inttype->size, buf);
s = buf;
}
if (len > 0 && n >= len || t != ',')
if ((len > 0 && n >= len) || t != ',')
break;
t = gettok();
} while (t != '}');
@ -123,9 +123,9 @@ static int initfields(Field p, Field q) {
do {
i = initvalue(inttype)->u.v.i;
if (fieldsize(p) < 8*p->type->size) {
if (p->type == inttype &&
(i < -(int)(fieldmask(p)>>1)-1 || i > (int)(fieldmask(p)>>1))
|| p->type == unsignedtype && (i&~fieldmask(p)) != 0)
if ((p->type == inttype &&
(i < -(int)(fieldmask(p)>>1)-1 || i > (int)(fieldmask(p)>>1)))
|| (p->type == unsignedtype && (i&~fieldmask(p)) != 0))
warning("initializer exceeds bit-field width\n");
i &= fieldmask(p);
}
@ -185,7 +185,7 @@ static int initstruct(int len, Type ty, int lev) {
(*IR->space)(a - n%a);
n = roundup(n, a);
}
if (len > 0 && n >= len || t != ',')
if ((len > 0 && n >= len) || t != ',')
break;
t = gettok();
} while (t != '}');