From: Samuel Just Date: Sat, 11 Sep 2021 05:44:26 +0000 (+0000) Subject: crimson/os/seastore/cached_extent: fix unused variable warning X-Git-Tag: v17.1.0~889^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e9e34d7f933cf63b6a7d218c90662c1c9d3535a4;p=ceph.git crimson/os/seastore/cached_extent: fix unused variable warning Signed-off-by: Samuel Just --- diff --git a/src/crimson/os/seastore/cached_extent.h b/src/crimson/os/seastore/cached_extent.h index 488742e41f61e..b60c19f84ed70 100644 --- a/src/crimson/os/seastore/cached_extent.h +++ b/src/crimson/os/seastore/cached_extent.h @@ -578,7 +578,7 @@ public: void erase(CachedExtent &extent) { assert(extent.parent_index); assert(extent.is_linked()); - auto erased = extent_index.erase( + [[maybe_unused]] auto erased = extent_index.erase( extent_index.s_iterator_to(extent)); extent.parent_index = nullptr;