Fix clang build issue

Return value for non-void function. Fixes #3300