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
6581 } else if (arg == NULL) {6581 } else if (arg == NULL) {
6582 error("too many arguments to function");6582 error("too many arguments to function");
6583 } else {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

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