From: Georgi Gerganov Date: Wed, 6 Dec 2023 08:41:03 +0000 (+0200) Subject: common : fix compile warning X-Git-Tag: upstream/0.0.4488~2871 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=caa9249217c5fd524b900add5ddcbeaa20cbcb12;p=pkg%2Fggml%2Fsources%2Fllama.cpp common : fix compile warning --- diff --git a/common/sampling.cpp b/common/sampling.cpp index b6bb886c..f4e76df3 100644 --- a/common/sampling.cpp +++ b/common/sampling.cpp @@ -113,13 +113,15 @@ std::string llama_sampling_order_print(const llama_sampling_params & params) { default : break; } } - } else result += "-> mirostat "; + } else { + result += "-> mirostat "; + } return result; } // no reasons to expose this function in header -void sampler_queue( +static void sampler_queue( struct llama_context * ctx_main, const llama_sampling_params & params, llama_token_data_array & cur_p,