]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Remove unused variable (#607)
authorCasey Primozic <redacted>
Thu, 30 Mar 2023 17:53:35 +0000 (10:53 -0700)
committerGitHub <redacted>
Thu, 30 Mar 2023 17:53:35 +0000 (17:53 +0000)
* It seems some new warning were added recently that exposed this.  I wrote the code that included this unused variable originally and it is indeed not needed.

ggml.c

diff --git a/ggml.c b/ggml.c
index 2bcab68bf92e3dd7c0469959c93c061703356e59..6a36bc95279edf0361f846befe29f9503eb7f156 100644 (file)
--- a/ggml.c
+++ b/ggml.c
@@ -1829,7 +1829,6 @@ static void ggml_vec_dot_q4_0(const int n, float * restrict s, const void * rest
 
     const int superblock_size = 8;
     const int superblock_count = nb / superblock_size;
-    const int remainder = nb % superblock_size;
 
     for (int superblock_ix = 0; superblock_ix < superblock_count; superblock_ix += 1) {
         int i = superblock_ix * superblock_size;