* Remove some more compiler warnings.
This commit is contained in:
parent
9622898131
commit
f74b29d303
|
@ -537,7 +537,7 @@ void any2opnd(register struct expr **expp, int oper)
|
||||||
case CHAR:
|
case CHAR:
|
||||||
case SHORT:
|
case SHORT:
|
||||||
case ENUM:
|
case ENUM:
|
||||||
/* case FLOAT: /* not necessary anymore */
|
/* case FLOAT: *//* not necessary anymore */
|
||||||
any2arith(expp, oper);
|
any2arith(expp, oper);
|
||||||
break;
|
break;
|
||||||
case ARRAY:
|
case ARRAY:
|
||||||
|
|
|
@ -36,6 +36,7 @@ void end_code(void);
|
||||||
struct expr;
|
struct expr;
|
||||||
struct def;
|
struct def;
|
||||||
struct idf;
|
struct idf;
|
||||||
|
struct decspecs;
|
||||||
|
|
||||||
label code_string(char* val, int len);
|
label code_string(char* val, int len);
|
||||||
void def_strings(register struct string_cst *sc);
|
void def_strings(register struct string_cst *sc);
|
||||||
|
|
|
@ -455,7 +455,7 @@ void check_and_pad(struct expr **expp, struct type **tpp)
|
||||||
/* next selector is aligned by adding extra zeroes */
|
/* next selector is aligned by adding extra zeroes */
|
||||||
if (sd->sd_sdef)
|
if (sd->sd_sdef)
|
||||||
zero_bytes(sd);
|
zero_bytes(sd);
|
||||||
while (sd = sd->sd_sdef) { /* pad remaining selectors */
|
while ( (sd = sd->sd_sdef)!=0) { /* pad remaining selectors */
|
||||||
pad(sd->sd_type);
|
pad(sd->sd_type);
|
||||||
if (sd->sd_sdef)
|
if (sd->sd_sdef)
|
||||||
zero_bytes(sd);
|
zero_bytes(sd);
|
||||||
|
|
|
@ -49,7 +49,7 @@ next_option: /* to allow combined one-char options */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '-':
|
case '-':
|
||||||
options[*text++] = 1; /* flags, debug options etc. */
|
options[(int)*text++] = 1; /* flags, debug options etc. */
|
||||||
goto next_option;
|
goto next_option;
|
||||||
|
|
||||||
#ifndef LINT
|
#ifndef LINT
|
||||||
|
@ -127,7 +127,7 @@ next_option: /* to allow combined one-char options */
|
||||||
register arith sz, algn;
|
register arith sz, algn;
|
||||||
char c;
|
char c;
|
||||||
|
|
||||||
while (c = *text++) {
|
while ( (c = *text++) !=0) {
|
||||||
sz = txt2int(&text);
|
sz = txt2int(&text);
|
||||||
algn = 0;
|
algn = 0;
|
||||||
if (*text == '.') {
|
if (*text == '.') {
|
||||||
|
|
|
@ -283,7 +283,7 @@ struct sdef *idf2sdef(
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tp not met; take an identification. */
|
/* Tp not met; take an identification. */
|
||||||
if (sdef = idf->id_sdef) {
|
if ( (sdef = idf->id_sdef) ) {
|
||||||
/* There is an identification */
|
/* There is an identification */
|
||||||
error("illegal use of selector %s", idf->id_text);
|
error("illegal use of selector %s", idf->id_text);
|
||||||
return sdef;
|
return sdef;
|
||||||
|
|
|
@ -273,7 +273,7 @@ void completed(struct type *tp)
|
||||||
case STRUCT:
|
case STRUCT:
|
||||||
case UNION:
|
case UNION:
|
||||||
case ENUM:
|
case ENUM:
|
||||||
while (etp = etp->next)
|
while ( (etp = etp->next) !=0)
|
||||||
{
|
{
|
||||||
if (!etp->tp_sdef)
|
if (!etp->tp_sdef)
|
||||||
etp->tp_sdef = tp->tp_sdef;
|
etp->tp_sdef = tp->tp_sdef;
|
||||||
|
|
Loading…
Reference in a new issue