Commit 8c6fafdb for whisper.cpp
commit 8c6fafdb6d99f48b97048da5841fd158d9823625
Author: Daniel Bevenius <daniel.bevenius@gmail.com>
Date: Mon Nov 9 22:09:21 2026 -0800
whisper : remove unused n_ctx_pad variable [no ci] (#4165)
This commit removes the following unused variable:
```console
/whisper.cpp/src/whisper.cpp:2124:15:
warning: unused variable ‘n_ctx_pad’ [-Wunused-variable]
2124 | const int n_ctx_pad = GGML_PAD(n_ctx, 256);
| ^~~~~~~~~
```
diff --git a/src/whisper.cpp b/src/whisper.cpp
index 3df765c6..2fac6479 100644
--- a/src/whisper.cpp
+++ b/src/whisper.cpp
@@ -2121,8 +2121,6 @@ static struct ggml_cgraph * whisper_build_graph_encoder(
WHISPER_ASSERT(!!kv_pad.buffer);
- const int n_ctx_pad = GGML_PAD(n_ctx, 256);
-
struct ggml_init_params params = {
/*.mem_size =*/ wstate.sched_encode.meta.size(),
/*.mem_buffer =*/ wstate.sched_encode.meta.data(),