Fix "void function should not return a value" error for clang