Branch: Tag:

2016-04-26

2016-04-26 15:25:49 by Henrik Grubbström (Grubba) <grubba@grubba.org>

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);    }