From: Danny Al-Gaaf Date: Fri, 13 Oct 2017 19:42:23 +0000 (+0200) Subject: rgw_admin.cc: do not compare int with boolean X-Git-Tag: v13.0.1~358^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d5419143ac5ab0ad8d9e31bd251978b4d9355e46;p=ceph.git rgw_admin.cc: do not compare int with boolean Fix for: [src/rgw/rgw_admin.cc:5862]: (warning) Comparison of a boolean expression with an integer. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 7c2aa40eb4e..ec1786b1cb6 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -5856,7 +5856,7 @@ next: } if (opt_cmd == OPT_BUCKET_RM) { - if (inconsistent_index == false) { + if (!inconsistent_index) { RGWBucketAdminOp::remove_bucket(store, bucket_op, bypass_gc, true); } else { if (!yes_i_really_mean_it) {