ggerganov commited on
Commit
97fa2e3
·
unverified ·
1 Parent(s): 0d50a29

ggml : fix compile warnings (unused vars) (llama/4966)

Browse files
Files changed (1) hide show
  1. ggml-quants.c +12 -0
ggml-quants.c CHANGED
@@ -3689,6 +3689,10 @@ void ggml_vec_dot_q4_0_q8_0(int n, float * restrict s, size_t bs, const void * r
3689
  #else
3690
  assert(nrc == 1);
3691
  #endif
 
 
 
 
3692
 
3693
  const block_q4_0 * restrict x = vx;
3694
  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
4052
  #else
4053
  assert(nrc == 1);
4054
  #endif
 
 
 
 
4055
 
4056
  const block_q4_1 * restrict x = vx;
4057
  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
4861
  #else
4862
  assert(nrc == 1);
4863
  #endif
 
 
 
 
4864
 
4865
  const block_q8_0 * restrict x = vx;
4866
  const block_q8_0 * restrict y = vy;
 
3689
  #else
3690
  assert(nrc == 1);
3691
  #endif
3692
+ UNUSED(nrc);
3693
+ UNUSED(bx);
3694
+ UNUSED(by);
3695
+ UNUSED(bs);
3696
 
3697
  const block_q4_0 * restrict x = vx;
3698
  const block_q8_0 * restrict y = vy;
 
4056
  #else
4057
  assert(nrc == 1);
4058
  #endif
4059
+ UNUSED(nrc);
4060
+ UNUSED(bx);
4061
+ UNUSED(by);
4062
+ UNUSED(bs);
4063
 
4064
  const block_q4_1 * restrict x = vx;
4065
  const block_q8_1 * restrict y = vy;
 
4869
  #else
4870
  assert(nrc == 1);
4871
  #endif
4872
+ UNUSED(nrc);
4873
+ UNUSED(bx);
4874
+ UNUSED(by);
4875
+ UNUSED(bs);
4876
 
4877
  const block_q8_0 * restrict x = vx;
4878
  const block_q8_0 * restrict y = vy;