From 8d81559fa7b8bcac9f7c8b478858953486371f90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Fri, 2 Oct 2026 11:07:06 +0200 Subject: [PATCH] llama : silence unused-result warnings (#29839) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- src/llama-sampler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/llama-sampler.cpp b/src/llama-sampler.cpp index b797c50be..6c958a287 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_da if (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 dist(0.0f, 1.0f); - dist(sctx->rng); + (void) dist(sctx->rng); ++sctx->n_backend_draws_committed; }