Unified · Split
| @@ -6581,7 +6581,9 @@ static void gfunc_param_typed(Sym *func, Sym *arg) · 6580 unmodified lines | ||
| 6581 | 6581 | } else if (arg == NULL) { |
| 6582 | 6582 | error("too many arguments to function"); |
| 6583 | 6583 | } else { |
| 6584 | − gen_assign_cast(&arg->type); | |
| 6584 | + type = arg->type; | |
| 6585 | + type.t &= ~VT_CONSTANT; /* need to do that to avoid false warning */ | |
| 6586 | + gen_assign_cast(&type); | |
| 6585 | 6587 | } |
| 6586 | 6588 | } |
| 6587 | 6589 | |