]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore/cached_extent: fix unused variable warning
authorSamuel Just <sjust@redhat.com>
Sat, 11 Sep 2021 05:44:26 +0000 (05:44 +0000)
committerSamuel Just <sjust@redhat.com>
Mon, 13 Sep 2021 23:37:17 +0000 (16:37 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/cached_extent.h

index 488742e41f61e060ab355510f11cbc3a7de7588e..b60c19f84ed703ae6ad446b29a10b87b4ff76aa8 100644 (file)
@@ -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;