warn on passing integer constants into ... functions. Again, this will need

an option later
This commit is contained in:
Bill Currie 2001-07-24 20:43:18 +00:00
parent d9cde786b3
commit 576123060a

View file

@ -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;