diff options
author | Ronen Friedman <rfriedma@redhat.com> | 2024-02-07 16:00:29 +0100 |
---|---|---|
committer | Ronen Friedman <rfriedma@redhat.com> | 2024-02-07 16:05:04 +0100 |
commit | 5172ad074669d88fea455827a22a7f30a01d93d6 (patch) | |
tree | b14a9a274ed04254bd4902ffac7a1ab41ceff0db /src/rgw/driver/rados/cls_fifo_legacy.cc | |
parent | Merge pull request #54596 from cbodley/wip-cmake-dencoder-modules (diff) | |
download | ceph-5172ad074669d88fea455827a22a7f30a01d93d6.tar.xz ceph-5172ad074669d88fea455827a22a7f30a01d93d6.zip |
rgw: mark maybe_unused variables
Specifically, variables that are only used in debug builds.
Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
Diffstat (limited to 'src/rgw/driver/rados/cls_fifo_legacy.cc')
-rw-r--r-- | src/rgw/driver/rados/cls_fifo_legacy.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/rgw/driver/rados/cls_fifo_legacy.cc b/src/rgw/driver/rados/cls_fifo_legacy.cc index 4f2c0738b39..fad9404fdb3 100644 --- a/src/rgw/driver/rados/cls_fifo_legacy.cc +++ b/src/rgw/driver/rados/cls_fifo_legacy.cc @@ -547,7 +547,8 @@ void FIFO::_update_meta(const DoutPrefixProvider *dpp, const fifo::update& updat update_meta(&op, info.version, update); auto updater = std::make_unique<Updater>(dpp, this, c, update, version, pcanceled, tid); - auto r = ioctx.aio_operate(oid, Updater::call(std::move(updater)), &op); + [[maybe_unused]] auto r = + ioctx.aio_operate(oid, Updater::call(std::move(updater)), &op); assert(r >= 0); } @@ -1296,8 +1297,9 @@ void FIFO::read_meta(const DoutPrefixProvider *dpp, std::uint64_t tid, lr::AioCo encode(gm, in); auto reader = std::make_unique<Reader>(dpp, this, c, tid); auto rp = reader.get(); - auto r = ioctx.aio_exec(oid, Reader::call(std::move(reader)), fifo::op::CLASS, - fifo::op::GET_META, in, &rp->bl); + [[maybe_unused]] auto r = ioctx.aio_exec( + oid, Reader::call(std::move(reader)), fifo::op::CLASS, fifo::op::GET_META, + in, &rp->bl); assert(r >= 0); } |