Commit 02e9a4c
committed
clang tidy generates use-after-move warning
clang-tidy original warning:
/home/suyash/ceph/src/cls/queue/cls_queue_src.cc:330:50: warning: 'bl' used after it was moved [bugprone-use-after-move]
uint64_t entry_start_offset = start_offset - bl.length();
^
/home/suyash/ceph/src/cls/queue/cls_queue_src.cc:333:14: note: move occurred here
bl_chunk = std::move(bl);
^
/home/suyash/ceph/src/cls/queue/cls_queue_src.cc:330:50: note: the use happens in a later loop iteration than the move
uint64_t entry_start_offset = start_offset - bl.length();
^
Fixes: https://tracker.ceph.com/issues/66356
Signed-off-by: Suyash Dongre <[email protected]>1 parent 8c4f910 commit 02e9a4c
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
| 334 | + | |
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| |||
0 commit comments