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