diff --git a/src/blockstore/blockstore_flush.h b/src/blockstore/blockstore_flush.h index a9a24ef9..fe70bd87 100644 --- a/src/blockstore/blockstore_flush.h +++ b/src/blockstore/blockstore_flush.h @@ -58,7 +58,6 @@ class journal_flusher_co int i, res; bool read_to_fill_incomplete; int copy_count; - bool do_repeat = false; friend class journal_flusher_t; diff --git a/src/blockstore/blockstore_heap.h b/src/blockstore/blockstore_heap.h index 2137e467..cefc9eff 100644 --- a/src/blockstore/blockstore_heap.h +++ b/src/blockstore/blockstore_heap.h @@ -163,7 +163,7 @@ using heap_mvcc_map_t = robin_hood::unordered_flat_mapiov = (iovec){ buf, len }; - data->callback = [this, offset, cb](ring_data_t *data) + data->callback = [offset, cb](ring_data_t *data) { if (data->res < 0) { diff --git a/src/client/cluster_client.cpp b/src/client/cluster_client.cpp index b0a32d98..e7c54edb 100644 --- a/src/client/cluster_client.cpp +++ b/src/client/cluster_client.cpp @@ -898,7 +898,7 @@ void cluster_client_t::execute_cas(cluster_op_t *op) .opcode = OSD_OP_SYNC, }, }, - .callback = [this, op](osd_op_t *part) + .callback = [op](osd_op_t *part) { if (part->reply.hdr.retval != 0) { diff --git a/src/disk_tool/disk_tool_discard.cpp b/src/disk_tool/disk_tool_discard.cpp index d7e9de05..2c1435d8 100644 --- a/src/disk_tool/disk_tool_discard.cpp +++ b/src/disk_tool/disk_tool_discard.cpp @@ -54,7 +54,7 @@ int disk_tool_t::trim_data(std::string device) fprintf(stderr, "Reading metadata\n"); data_alloc = new allocator_t(dsk.block_count); r = process_meta( - [this](blockstore_meta_header_v3_t *hdr) {}, + [](blockstore_meta_header_v3_t *hdr) {}, [this](blockstore_heap_t *heap, heap_entry_t *obj, uint32_t meta_block_num) { for (auto wr = obj; wr; wr = heap->prev(wr)) diff --git a/src/osd/osd_peering.cpp b/src/osd/osd_peering.cpp index 38d2177a..fe31a104 100644 --- a/src/osd/osd_peering.cpp +++ b/src/osd/osd_peering.cpp @@ -584,7 +584,7 @@ void osd_t::submit_list_subop(osd_num_t role_osd, pg_peering_state_t *ps) .opcode = OSD_OP_SEC_LIST, }, .list_pg = ps->pg_num, - .pg_count = pool_cfg.applied_pg_count, + .pg_count = (uint32_t)pool_cfg.applied_pg_count, .pg_stripe_size = pool_cfg.applied_pg_stripe_size, .min_inode = ((uint64_t)(ps->pool_id) << (64 - POOL_ID_BITS)), .max_inode = ((uint64_t)(ps->pool_id+1) << (64 - POOL_ID_BITS)) - 1,