Skip to content

Commit 2dc0d4c

Browse files
committed
replace (void) with GGML_UNUSED
1 parent a34e5e8 commit 2dc0d4c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ggml/src/ggml-cuda/ssm-conv.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ static __global__ void ssm_conv_f32(const float * __restrict__ src0, const float
55
const int src0_nb0, const int src0_nb1, const int src0_nb2, const int src1_nb1,
66
float * __restrict__ dst, const int dst_nb0, const int dst_nb1, const int dst_nb2,
77
const int64_t n_t) {
8-
(void) src0_nb0;
8+
GGML_UNUSED(src0_nb0);
99
const int tid = threadIdx.x;
1010
const int bidx = blockIdx.x;
1111
const int bidy = blockIdx.y;

ggml/src/ggml-cuda/ssm-scan.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ __global__ void __launch_bounds__(splitD, 2)
88
const int src1_nb3, const int src2_nb0, const int src2_nb1, const int src2_nb2, const int src3_nb1,
99
const int src4_nb1, const int src4_nb2, const int src5_nb1, const int src5_nb2,
1010
float * __restrict__ dst, const int64_t L) {
11-
(void) src1_nb0;
12-
(void) src2_nb0;
11+
GGML_UNUSED(src1_nb0);
12+
GGML_UNUSED(src2_nb0);
1313
const int bidx = blockIdx.x; // split along B
1414
const int bidy = blockIdx.y; // split along D
1515
const int tid = threadIdx.x;

0 commit comments

Comments
 (0)