]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os: mark unused variable with [[maybe_unused]]
authorKefu Chai <kchai@redhat.com>
Tue, 2 Mar 2021 11:46:01 +0000 (19:46 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 2 Mar 2021 11:54:14 +0000 (19:54 +0800)
`MAX_FLAT_BLOCK_SIZE` is only used in Debug builds.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/seastore/collection_manager/flat_collection_manager.cc
src/crimson/os/seastore/omap_manager/btree/omap_btree_node_impl.cc

index b6591bbc02a5fcdbd620155a5dfa647888ed8bd7..08cf84ffa335814eccd0f80910dfe83f91f083cc 100644 (file)
@@ -19,7 +19,7 @@ namespace {
 namespace crimson::os::seastore::collection_manager {
 
 constexpr static segment_off_t MIN_FLAT_BLOCK_SIZE = 4<<10;
-constexpr static segment_off_t MAX_FLAT_BLOCK_SIZE = 4<<20;
+[[maybe_unused]] constexpr static segment_off_t MAX_FLAT_BLOCK_SIZE = 4<<20;
 
 FlatCollectionManager::FlatCollectionManager(
   TransactionManager &tm)
index e1ad01926026ae653d98274bc6e282a0a2f81c4f..acade8e43a3fe1d04817dcfe0b31d9a7a2f449e3 100644 (file)
@@ -235,6 +235,7 @@ OMapInnerNode::list(
                child_result.begin(),
                child_result.end());
              biter++;
+             (void)max_result_size;
              assert(child_complete || result.size() == max_result_size);
              return list_ertr::make_ready_future<bool>(false);
            });