]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
common : fix compile warning
authorGeorgi Gerganov <redacted>
Wed, 6 Dec 2023 08:41:03 +0000 (10:41 +0200)
committerGeorgi Gerganov <redacted>
Wed, 6 Dec 2023 08:41:03 +0000 (10:41 +0200)
common/sampling.cpp

index b6bb886c6c7d765b4a433f31c6e2035acd8a87c1..f4e76df31bee3263d87b187e0528531285c39029 100644 (file)
@@ -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,