]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: fix initialization of s3_event in pubsub
authorCasey Bodley <cbodley@redhat.com>
Tue, 12 Jan 2021 21:01:38 +0000 (16:01 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 13 Jan 2021 14:12:49 +0000 (09:12 -0500)
commit85b2044847adef6f42cb9c868409e1a632232fd5
tree155c66b4fd8e8f75c36d8c999af7503927343fd7
parent1ffbf61a0d5b4d07c35ebae91bc55ad92a6003f4
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<rgw_pubsub_event>&, EventRef<rgw_pubsub_s3_event>&, 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 <cbodley@redhat.com>
src/rgw/rgw_sync_module_pubsub.cc