LLM inference in C/C++
C++ ggml
llama : silence unused-result warnings (#29839)
Adrien Gallouët8d81559fa7b8
diff --git a/src/llama-sampler.cpp b/src/llama-sampler.cppindex b797c50bef..6c958a2870 100644--- a/src/llama-sampler.cpp+++ b/src/llama-sampler.cpp@@ -1162,7 +1162,7 @@ static void llama_sampler_dist_apply(struct llama_sampler * smpl, llama_token_daif (cur_p->size == 1) {// keep the RNG state aligned with backend sampling, which draws once per output- dist(ctx->rng);+ (void) dist(ctx->rng);cur_p->data[0].p = 1.0f;return;}@@ -1377,7 +1377,7 @@ static void llama_sampler_dist_accept(struct llama_sampler * smpl, llama_token t}std::uniform_real_distribution<double> dist(0.0f, 1.0f);- dist(sctx->rng);+ (void) dist(sctx->rng);++sctx->n_backend_draws_committed;}