mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
check for uninitialized variables in return statements
This commit is contained in:
parent
a376e6f86d
commit
3deee307a8
1 changed files with 1 additions and 0 deletions
|
@ -2078,6 +2078,7 @@ return_expr (function_t *f, expr_t *e)
|
|||
e->e.float_val = e->e.integer_val;
|
||||
t = &type_float;
|
||||
}
|
||||
check_initialized (e);
|
||||
if (t == &type_void) {
|
||||
if (e->type == ex_nil) {
|
||||
t = f->def->type->aux_type;
|
||||
|
|
Loading…
Reference in a new issue