[feature] fix compiler warning: no return value type