fix warnings of non-void return functions

fixes #546 

sorry @f-schmitt-zih, I already fixed it before I read your comment