common : fix noreturn compile warning (#13151)

ggml-ci
This commit is contained in:
Georgi Gerganov 2025-04-28 11:57:19 +03:00 committed by GitHub
parent e5d6c2554e
commit 43f2b07193
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -673,10 +673,14 @@ static struct common_hf_file_res common_get_hf_file(const std::string &, const s
return {}; return {};
} }
std::pair<long, std::vector<char>> common_remote_get_content(const std::string &, const common_remote_params &) { std::pair<long, std::vector<char>> common_remote_get_content(const std::string & url, const common_remote_params &) {
if (!url.empty()) {
throw std::runtime_error("error: built without CURL, cannot download model from the internet"); throw std::runtime_error("error: built without CURL, cannot download model from the internet");
} }
return {};
}
#endif // LLAMA_USE_CURL #endif // LLAMA_USE_CURL
// //