]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/onode-staged-tree: suppress warnings about unused variable 42885/head
authorYingxin Cheng <yingxin.cheng@intel.com>
Mon, 23 Aug 2021 08:19:27 +0000 (16:19 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Mon, 23 Aug 2021 08:20:39 +0000 (16:20 +0800)
Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/crimson/os/seastore/onode_manager/staged-fltree/stages/node_stage_layout.cc

index 13a9e3c5f9e36b7b212f41fb3740718c84c1d337..373f5d4fb6ceb2ae2dee9653205a74cd93f6bee6 100644 (file)
@@ -36,7 +36,7 @@ void F013_T::update_size_at(
     NodeExtentMutable& mut, const me_t& node, index_t index, int change)
 {
   assert(index <= node.num_keys);
-  extent_len_t node_size = mut.get_length();
+  [[maybe_unused]] extent_len_t node_size = mut.get_length();
 #ifndef NDEBUG
   // check underflow
   if (change < 0 && index != node.num_keys) {