Mercurial > hg > tinycc
changeset 280:86ca0d3ce28b
[project @ 2003-06-02 20:32:30 by bellard]
suppressed warning for const function parameters
author | bellard |
---|---|
date | Mon, 02 Jun 2003 20:32:30 +0000 |
parents | d0d064623151 |
children | a1fe281cc571 |
files | tcc.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tcc.c Mon Jun 02 20:31:46 2003 +0000 +++ b/tcc.c Mon Jun 02 20:32:30 2003 +0000 @@ -6581,7 +6581,9 @@ } 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); } }