fix compilation error due to no return for net clang