From 139548d07011c27a719c0ab24f79073fe1cd0e1f Mon Sep 17 00:00:00 2001 From: Yee Man Chan Date: Tue, 2 Dec 2025 12:11:15 +0800 Subject: [PATCH] remove "const int64_t n_seq_tokens = q->ne[2];" to get rid of unused variable warning --- ggml/src/ggml.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ggml/src/ggml.c b/ggml/src/ggml.c index 8bf562e8b1..1703cad5ab 100644 --- a/ggml/src/ggml.c +++ b/ggml/src/ggml.c @@ -1134,7 +1134,7 @@ static const char * GGML_OP_SYMBOL[GGML_OP_COUNT] = { "glu(x)", }; -static_assert(GGML_OP_COUNT == 95, "GGML_OP_COUNT != 95"); +static_assert(GGML_OP_COUNT == 96, "GGML_OP_COUNT != 96"); static_assert(GGML_OP_POOL_COUNT == 2, "GGML_OP_POOL_COUNT != 2"); @@ -5482,7 +5482,6 @@ struct ggml_tensor * ggml_kda_scan( // h_new: {head_dim, head_dim, n_head, n_seqs} const int64_t head_dim = h->ne[0]; const int64_t n_head = q->ne[1]; - const int64_t n_seq_tokens = q->ne[2]; const int64_t n_seqs = q->ne[3]; struct ggml_tensor * result = ggml_new_tensor_1d(ctx, GGML_TYPE_F32, ggml_nelements(q) + head_dim * head_dim * n_head * n_seqs);