Non void function with no return value

Code generated by some compilers cause segmentation fault.