Fix compilation error with Clang

No more 'control may reach end of non-void function' error
Merge pull request #401 from alexey-lysiuk/clang_build_fix

Fix compilation error with Clang