suppressed warning for const function parameters

This commit is contained in:
bellard 2003-06-02 20:32:30 +00:00
parent 277e01cd64
commit 21d2d99bdc

4
tcc.c
View File

@ -6581,7 +6581,9 @@ static void gfunc_param_typed(Sym *func, Sym *arg)
} else if (arg == NULL) {
error("too many arguments to function");
} else {
gen_assign_cast(&arg->type);
type = arg->type;
type.t &= ~VT_CONSTANT; /* need to do that to avoid false warning */
gen_assign_cast(&type);
}
}