mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
Be more informative for pass by value size errors
This commit is contained in:
parent
a5da8da1dc
commit
7e31704ebe
1 changed files with 2 additions and 1 deletions
|
@ -427,7 +427,8 @@ check_function (symbol_t *fsym)
|
|||
fsym->type->t.func.type = &type_void;//FIXME better type?
|
||||
}
|
||||
if (type_size (fsym->type->t.func.type) > type_size (&type_param)) {
|
||||
error (0, "return value too large to be passed by value");
|
||||
error (0, "return value too large to be passed by value (%d)",
|
||||
type_size (&type_param));
|
||||
fsym->type->t.func.type = &type_void;//FIXME better type?
|
||||
}
|
||||
for (p = params, i = 0; p; p = p->next, i++) {
|
||||
|
|
Loading…
Reference in a new issue