]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
common : fix noreturn compile warning (#13151)
authorGeorgi Gerganov <redacted>
Mon, 28 Apr 2025 08:57:19 +0000 (11:57 +0300)
committerGitHub <redacted>
Mon, 28 Apr 2025 08:57:19 +0000 (11:57 +0300)
ggml-ci

common/arg.cpp

index 27401492122786cb6b5395bad8c92ffdb247a840..75e8e0bd51aeeb068c55112d7ffde264d924ecdd 100644 (file)
@@ -673,8 +673,12 @@ static struct common_hf_file_res common_get_hf_file(const std::string &, const s
     return {};
 }
 
-std::pair<long, std::vector<char>> 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<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");
+    }
+
+    return {};
 }
 
 #endif // LLAMA_USE_CURL