2016-04-26
2016-04-26 15:25:49 by Henrik Grubbström (Grubba) <grubba@grubba.org>
-
ee4fe82406c56ce5ca6e28d3064b5aacb797c744
(3 lines)
(+2/-1)
[
Show
| Annotate
]
Branch: 8.1
Compiler: Survive deprecated efuns returning void.
The compiler didn't handle attributed returned void values correctly,
and assumed that they would return a value.
121: Inside #if defined(PIKE_DEBUG)
z = new_get_return_type(type, CALL_INHIBIT_WARNINGS);
free_type(type);
}
- f->may_return_void = (z == void_type_string);
+ f->may_return_void = pike_types_le(z, void_type_string);
if(!z) Pike_fatal("Function has no valid return type.\n");
free_type(z);
}