From: Casey Bodley Date: Tue, 12 Jan 2021 21:01:38 +0000 (-0500) Subject: rgw: fix initialization of s3_event in pubsub X-Git-Tag: v16.1.0~55^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=85b2044847adef6f42cb9c868409e1a632232fd5;p=ceph.git rgw: fix initialization of s3_event in pubsub 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 --- 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) {}