From: Georgi Gerganov Date: Mon, 28 Apr 2025 08:57:19 +0000 (+0300) Subject: common : fix noreturn compile warning (#13151) X-Git-Tag: upstream/0.0.5318~113 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=43f2b07193cbcccd266734320ea9b948f5a01926;p=pkg%2Fggml%2Fsources%2Fllama.cpp common : fix noreturn compile warning (#13151) ggml-ci --- diff --git a/common/arg.cpp b/common/arg.cpp index 27401492..75e8e0bd 100644 --- a/common/arg.cpp +++ b/common/arg.cpp @@ -673,8 +673,12 @@ static struct common_hf_file_res common_get_hf_file(const std::string &, const s return {}; } -std::pair> common_remote_get_content(const std::string &, const common_remote_params &) { - throw std::runtime_error("error: built without CURL, cannot download model from the internet"); +std::pair> 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"); + } + + return {}; } #endif // LLAMA_USE_CURL