diff --git a/src/common/options.cc b/src/common/options.cc index 11f77695f79..4d6bbd1c17f 100644 --- a/src/common/options.cc +++ b/src/common/options.cc @@ -88,7 +88,6 @@ void Option::dump(Formatter *f) const f->dump_string("name", name); f->dump_string("type", type_to_str(type)); - std::string level_str; f->dump_string("level", level_to_str(level)); diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 9bb0b766aa2..a47d3ce52c7 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -2215,7 +2215,6 @@ static void sync_status(Formatter *formatter) for (auto iter : store->zone_conn_map) { const string& source_id = iter.first; - string zone_name; string source_str = "source: "; string s = source_str + source_id; auto siter = store->zone_by_id.find(source_id); diff --git a/src/rgw/rgw_bucket.cc b/src/rgw/rgw_bucket.cc index 62f37ced201..41b7d123150 100644 --- a/src/rgw/rgw_bucket.cc +++ b/src/rgw/rgw_bucket.cc @@ -1323,7 +1323,6 @@ int RGWBucketAdminOp::check_index(RGWRados *store, RGWBucketAdminOpState& op_sta RGWFormatterFlusher& flusher) { int ret; - map result; map existing_stats; map calculated_stats; diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index 6129d24e86b..42ecfbc6945 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -1630,7 +1630,6 @@ struct rgw_obj_key { * part of the given namespace, it returns false. */ static bool oid_to_key_in_ns(const string& oid, rgw_obj_key *key, const string& ns) { - string obj_ns; bool ret = parse_raw_oid(oid, key); if (!ret) { return ret; diff --git a/src/rgw/rgw_es_main.cc b/src/rgw/rgw_es_main.cc index 78b2865ed33..43145835b58 100644 --- a/src/rgw/rgw_es_main.cc +++ b/src/rgw/rgw_es_main.cc @@ -22,8 +22,6 @@ int main(int argc, char *argv[]) common_init_finish(g_ceph_context); - list infix; - string expr; if (argc > 1) { diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 297d7f90e66..4bebea03c0d 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -8122,7 +8122,6 @@ int RGWRados::copy_obj(RGWObjectCtx& obj_ctx, if (tail_placement.bucket.name.empty()) { manifest.set_tail_placement(tail_placement.placement_rule, src_obj.bucket); } - string oid, key; for (; miter != astate->manifest.obj_end(); ++miter) { ObjectWriteOperation op; cls_refcount_get(op, tag, true); @@ -8176,8 +8175,6 @@ done_ret: if (!copy_itself) { vector::iterator riter; - string oid, key; - /* rollback reference */ for (riter = ref_objs.begin(); riter != ref_objs.end(); ++riter) { ObjectWriteOperation op; @@ -10092,7 +10089,6 @@ int RGWRados::Object::Read::read(int64_t ofs, int64_t end, bufferlist& bl) RGWRados *store = source->get_store(); CephContext *cct = store->ctx(); - std::string oid, key; rgw_raw_obj read_obj; uint64_t read_ofs = ofs; uint64_t len, read_len; @@ -11588,7 +11584,6 @@ int RGWRados::get_bucket_stats(RGWBucketInfo& bucket_info, int shard_id, string BucketIndexShardsManager ver_mgr; BucketIndexShardsManager master_ver_mgr; BucketIndexShardsManager marker_mgr; - string shard_marker; char buf[64]; for(; iter != headers.end(); ++iter, ++viter) { accumulate_raw_stats(iter->second, stats); diff --git a/src/test/cls_rbd/test_cls_rbd.cc b/src/test/cls_rbd/test_cls_rbd.cc index fb274391471..50c59cf058b 100644 --- a/src/test/cls_rbd/test_cls_rbd.cc +++ b/src/test/cls_rbd/test_cls_rbd.cc @@ -1013,7 +1013,6 @@ TEST_F(TestClsRbd, snapshots_namespaces) ASSERT_EQ(0, create_image(&ioctx, oid, 10, 22, 0, oid, -1)); - vector snap_names; vector snap_namespaces; SnapContext snapc; @@ -1051,7 +1050,6 @@ TEST_F(TestClsRbd, snapshots_timestamps) ASSERT_EQ(0, create_image(&ioctx, oid, 10, 22, 0, oid, -1)); - vector snap_names; vector snap_timestamps; SnapContext snapc;