From 85b2044847adef6f42cb9c868409e1a632232fd5 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 12 Jan 2021 16:01:38 -0500 Subject: [PATCH] rgw: fix initialization of s3_event in pubsub MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit resolves compiler warning: rgw_sync_module_pubsub.cc: In constructor ‘RGWPSHandleObjEventCR::RGWPSHandleObjEventCR(RGWDataSyncCtx*, PSEnvRef, const rgw_user&, EventRef&, EventRef&, const TopicsRef&)’: rgw_sync_module_pubsub.cc:1028:3: warning: ‘RGWPSHandleObjEventCR::s3_event’ is initialized with itself [-Winit-self] 1028 | RGWPSHandleObjEventCR(RGWDataSyncCtx* const _sc, | ^~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Casey Bodley --- src/rgw/rgw_sync_module_pubsub.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_sync_module_pubsub.cc b/src/rgw/rgw_sync_module_pubsub.cc index 74859b13325e..11388eadf1a7 100644 --- a/src/rgw/rgw_sync_module_pubsub.cc +++ b/src/rgw/rgw_sync_module_pubsub.cc @@ -1035,7 +1035,7 @@ public: env(_env), owner(_owner), event(_event), - s3_event(s3_event), + s3_event(_s3_event), topics(_topics), has_subscriptions(false), event_handled(false) {} -- 2.47.3