]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ggml : fix compile warnings (unused vars) (llama/4966)
authorGeorgi Gerganov <redacted>
Sun, 11 Feb 2024 13:33:01 +0000 (15:33 +0200)
committerGeorgi Gerganov <redacted>
Mon, 12 Feb 2024 07:31:11 +0000 (09:31 +0200)
ggml-quants.c

index 6c122dd2ad413975ce11aa4c05f0d0f8532cd914..b2a309bf8e5fce9c5e48ee41233d50ab8a161b3f 100644 (file)
@@ -3689,6 +3689,10 @@ void ggml_vec_dot_q4_0_q8_0(int n, float * restrict s, size_t bs, const void * r
 #else
     assert(nrc == 1);
 #endif
+    UNUSED(nrc);
+    UNUSED(bx);
+    UNUSED(by);
+    UNUSED(bs);
 
     const block_q4_0 * restrict x = vx;
     const block_q8_0 * restrict y = vy;
@@ -4052,6 +4056,10 @@ void ggml_vec_dot_q4_1_q8_1(int n, float * restrict s, size_t bs, const void * r
 #else
     assert(nrc == 1);
 #endif
+    UNUSED(nrc);
+    UNUSED(bx);
+    UNUSED(by);
+    UNUSED(bs);
 
     const block_q4_1 * restrict x = vx;
     const block_q8_1 * restrict y = vy;
@@ -4861,6 +4869,10 @@ void ggml_vec_dot_q8_0_q8_0(int n, float * restrict s, size_t bs, const void * r
 #else
     assert(nrc == 1);
 #endif
+    UNUSED(nrc);
+    UNUSED(bx);
+    UNUSED(by);
+    UNUSED(bs);
 
     const block_q8_0 * restrict x = vx;
     const block_q8_0 * restrict y = vy;