From eb5ee0a33110dcdab6db72df48956b47c1e2ebac Mon Sep 17 00:00:00 2001 From: Chang Liu Date: Fri, 20 Sep 2019 12:51:09 +0000 Subject: [PATCH] rgw: kill compile warnning in rgw_object_lock.h Signed-off-by: Chang Liu --- src/rgw/rgw_object_lock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_object_lock.h b/src/rgw/rgw_object_lock.h index e84dd8d4d22e..cabb1c766d0f 100644 --- a/src/rgw/rgw_object_lock.h +++ b/src/rgw/rgw_object_lock.h @@ -112,7 +112,7 @@ public: // DefaultRetention requires either Days or Years. // You can't specify both at the same time. // see https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTObjectLockConfiguration.html - return get_years() > 0 != get_days() > 0; + return (get_years() > 0) != (get_days() > 0); } bool has_rule() const { -- 2.47.3