From: Li Wang Date: Fri, 30 Nov 2018 10:05:32 +0000 (+0000) Subject: crush/CrushWrapper: silence compiler warning X-Git-Tag: v14.1.0~735^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1ab09d13271e5eabea71309999840da85ebc5979;p=ceph.git crush/CrushWrapper: silence compiler warning silence compiler warning for comparison between signed and unsigned integer expressions Signed-off-by: Li Wang --- diff --git a/src/crush/CrushWrapper.cc b/src/crush/CrushWrapper.cc index 744d5c9c38b3a..0fda4ee89d40a 100644 --- a/src/crush/CrushWrapper.cc +++ b/src/crush/CrushWrapper.cc @@ -2044,7 +2044,7 @@ int CrushWrapper::get_new_bucket_id() crush->buckets, sizeof(crush->buckets[0]) * crush->max_buckets); for (auto& i : choose_args) { - assert(i.second.size == crush->max_buckets - 1); + assert(i.second.size == (__u32)crush->max_buckets - 1); ++i.second.size; i.second.args = (struct crush_choose_arg*)realloc( i.second.args,