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: v12.2.13~37^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dafa6033aaf29e179a8939a70c75ecf0b8edf89b;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 (cherry picked from commit d5419143ac5ab0ad8d9e31bd251978b4d9355e46) --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 8cecc1cad9b..9a8dfae601f 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -6199,7 +6199,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) {