From: Kefu Chai Date: Wed, 10 Mar 2021 11:24:12 +0000 (+0800) Subject: rgw/rgw_common: silence Wsign-compare warning X-Git-Tag: v17.1.0~2644^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e777c1046b68ebe1debea2c2073b3cd93a7190fd;p=ceph.git rgw/rgw_common: silence Wsign-compare warning Signed-off-by: Kefu Chai --- diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index ba4968827f2..840f4271fb5 100644 --- a/src/rgw/rgw_common.h +++ b/src/rgw/rgw_common.h @@ -358,7 +358,7 @@ class RGWHTTPArgs { bool exist_obj_excl_sub_resource() const { const char* const obj_sub_resource[] = {"append", "torrent", "uploadId", "partNumber", "versionId"}; - for (int i = 0; i != std::size(obj_sub_resource); i++) { + for (unsigned i = 0; i != std::size(obj_sub_resource); i++) { if (sub_resource_exists(obj_sub_resource[i])) return true; } return false;