llama : silence unused-result warnings (#29839)

Signed-off-by: Adrien Gallouët <angt@huggingface.co>
This commit is contained in:
Adrien Gallouët authored and GitHub committed 2026-10-02 11:07:06 +02:00
1 parent 6805ae35df
commit 8d81559fa7
1 file changed
+2 -2
+2 -2
View File
@@ -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<double> dist(0.0f, 1.0f);
dist(sctx->rng);
(void) dist(sctx->rng);
++sctx->n_backend_draws_committed;
}