mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
warn on passing integer constants into ... functions. Again, this will need
an option later
This commit is contained in:
parent
d9cde786b3
commit
576123060a
1 changed files with 4 additions and 0 deletions
|
@ -931,6 +931,10 @@ function_expr (expr_t *e1, expr_t *e2)
|
|||
}
|
||||
if (err)
|
||||
return err;
|
||||
} else {
|
||||
for (e = e2; e; e = e->next)
|
||||
if (e->type == ex_integer)
|
||||
warning (e, "passing integer consant into ... function");
|
||||
}
|
||||
e = new_binary_expr ('c', e1, e2);
|
||||
e->e.expr.type = ftype->aux_type;
|
||||
|
|
Loading…
Reference in a new issue