From 5172ad074669d88fea455827a22a7f30a01d93d6 Mon Sep 17 00:00:00 2001 From: Ronen Friedman Date: Wed, 7 Feb 2024 09:00:29 -0600 Subject: [PATCH] rgw: mark maybe_unused variables Specifically, variables that are only used in debug builds. Signed-off-by: Ronen Friedman --- src/rgw/driver/rados/cls_fifo_legacy.cc | 8 +++++--- 1 file 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 4f2c0738b396a..fad9404fdb394 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(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(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); } -- 2.39.5