mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
suppressed warning for const function parameters
This commit is contained in:
parent
277e01cd64
commit
21d2d99bdc
4
tcc.c
4
tcc.c
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user