From 83ada1890e0be2c9164737ed3731839a90fc02e9 Mon Sep 17 00:00:00 2001 From: "Adam C. Emerson" Date: Wed, 9 May 2018 14:19:50 -0400 Subject: [PATCH] rgw: Silence sign comparison warnings Since we're iterating with a size_t, we may as well compare against one. Signed-off-by: Adam C. Emerson --- src/rgw/rgw_admin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index e3611f80988..d814376b188 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -2347,7 +2347,7 @@ static int bucket_source_sync_status(RGWRados *store, const RGWZone& zone, int num_full = 0; int num_inc = 0; uint64_t full_complete = 0; - const int total_shards = status.size(); + const size_t total_shards = status.size(); using BucketSyncState = rgw_bucket_shard_sync_info::SyncState; for (size_t shard_id = 0; shard_id < total_shards; shard_id++) { -- 2.39.5