Skip to content

Commit aab26bd

Browse files
ggerganovjordankanter
authored andcommitted
ggml : fix compile warnings (unused vars) (ggml-org#4966)
1 parent 7ff3611 commit aab26bd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ggml-quants.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3689,6 +3689,10 @@ void ggml_vec_dot_q4_0_q8_0(int n, float * restrict s, size_t bs, const void * r
36893689
#else
36903690
assert(nrc == 1);
36913691
#endif
3692+
UNUSED(nrc);
3693+
UNUSED(bx);
3694+
UNUSED(by);
3695+
UNUSED(bs);
36923696

36933697
const block_q4_0 * restrict x = vx;
36943698
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
40524056
#else
40534057
assert(nrc == 1);
40544058
#endif
4059+
UNUSED(nrc);
4060+
UNUSED(bx);
4061+
UNUSED(by);
4062+
UNUSED(bs);
40554063

40564064
const block_q4_1 * restrict x = vx;
40574065
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
48614869
#else
48624870
assert(nrc == 1);
48634871
#endif
4872+
UNUSED(nrc);
4873+
UNUSED(bx);
4874+
UNUSED(by);
4875+
UNUSED(bs);
48644876

48654877
const block_q8_0 * restrict x = vx;
48664878
const block_q8_0 * restrict y = vy;

0 commit comments

Comments
 (0)