Skip to content

Commit 4990864

Browse files
author
kshtsk
committed
erasure-code/clay: cleanup unused but set variable count_retrieved_sub_chunks
Addresses clang 17 error: /home/rocky/ceph/src/erasure-code/clay/ErasureCodeClay.cc:481:7: error: variable 'count_retrieved_sub_chunks' set but not used [-Werror,-Wunused-but-set-variable] Signed-off-by: kshtsk <[email protected]>
1 parent 420dcdb commit 4990864

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/erasure-code/clay/ErasureCodeClay.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,6 @@ int ErasureCodeClay::repair_one_lost_chunk(map<int, bufferlist> &recovered_data,
478478
int z_vec[t];
479479
map<int, set<int> > ordered_planes;
480480
map<int, int> repair_plane_to_ind;
481-
int count_retrieved_sub_chunks = 0;
482481
int plane_ind = 0;
483482

484483
bufferptr buf(buffer::create_aligned(sub_chunksize, SIMD_ALIGN));
@@ -622,7 +621,6 @@ int ErasureCodeClay::repair_one_lost_chunk(map<int, bufferlist> &recovered_data,
622621
memcpy(&coupled_chunk[z*sub_chunksize],
623622
&uncoupled_chunk[z*sub_chunksize],
624623
sub_chunksize);
625-
count_retrieved_sub_chunks++;
626624
} else {
627625
ceph_assert(y == lost_chunk / q);
628626
ceph_assert(node_sw == lost_chunk);

0 commit comments

Comments
 (0)