From: Yingxin Cheng Date: Thu, 19 May 2022 07:44:16 +0000 (+0800) Subject: crimson/os/seastore/cache: ignore maybe unused variables X-Git-Tag: v18.0.0~829^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F46351%2Fhead;p=ceph.git crimson/os/seastore/cache: ignore maybe unused variables Signed-off-by: Yingxin Cheng --- diff --git a/src/crimson/os/seastore/cache.cc b/src/crimson/os/seastore/cache.cc index 92cd6c59226c..6734b30389a7 100644 --- a/src/crimson/os/seastore/cache.cc +++ b/src/crimson/os/seastore/cache.cc @@ -1302,6 +1302,7 @@ void Cache::backref_batch_update( for (auto &ent : list) { if (ent->laddr == L_ADDR_NULL) { auto [it, insert] = backref_remove_set.insert(*ent); + boost::ignore_unused(insert); #ifndef NDEBUG if (!insert) { ERROR("backref_remove_set already contains {}", ent->paddr); @@ -1317,6 +1318,7 @@ void Cache::backref_batch_update( assert(!r); #endif auto [it, insert] = backref_inserted_set.insert(*ent); + boost::ignore_unused(insert); assert(insert); } } diff --git a/src/crimson/os/seastore/cache.h b/src/crimson/os/seastore/cache.h index e2a174e01203..6c20ceb4fe0d 100644 --- a/src/crimson/os/seastore/cache.h +++ b/src/crimson/os/seastore/cache.h @@ -949,6 +949,7 @@ public: void add_backref_extent(paddr_t paddr, extent_types_t type) { assert(!paddr.is_relative()); auto [iter, inserted] = backref_extents.emplace(paddr, type); + boost::ignore_unused(inserted); assert(inserted); }