suppressed warning for const function parameters
This commit is contained in:
parent
277e01cd64
commit
21d2d99bdc
1 changed files with 3 additions and 1 deletions
4
tcc.c
4
tcc.c
|
@ -6581,7 +6581,9 @@ static void gfunc_param_typed(Sym *func, Sym *arg)
|
||||||
} else if (arg == NULL) {
|
} else if (arg == NULL) {
|
||||||
error("too many arguments to function");
|
error("too many arguments to function");
|
||||||
} else {
|
} 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue