History

suppressed warning for const function parameters

bellard committed 23 years ago

Commit 21d2d991 parent 277e01c1 file · +3 −1Browse files

Unified · Split

tcc.c+3−1
@@ -6581,7 +6581,9 @@ static void gfunc_param_typed(Sym *func, Sym *arg) · 6580 unmodified lines
65816581 } else if (arg == NULL) {
65826582 error("too many arguments to function");
65836583 } 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);
65856587 }
65866588 }
65876589

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t