Skip to content

Commit 43f2b07

Browse files
authored
common : fix noreturn compile warning (#13151)
ggml-ci
1 parent e5d6c25 commit 43f2b07

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

common/arg.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -673,8 +673,12 @@ static struct common_hf_file_res common_get_hf_file(const std::string &, const s
673673
return {};
674674
}
675675

676-
std::pair<long, std::vector<char>> common_remote_get_content(const std::string &, const common_remote_params &) {
677-
throw std::runtime_error("error: built without CURL, cannot download model from the internet");
676+
std::pair<long, std::vector<char>> common_remote_get_content(const std::string & url, const common_remote_params &) {
677+
if (!url.empty()) {
678+
throw std::runtime_error("error: built without CURL, cannot download model from the internet");
679+
}
680+
681+
return {};
678682
}
679683

680684
#endif // LLAMA_USE_CURL

0 commit comments

Comments
 (0)