crimson/os: mark unused variable with [[maybe_unused]]

`MAX_FLAT_BLOCK_SIZE` is only used in Debug builds.

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2021-03-02 19:46:01 +08:00
parent 50f29bf2b7
commit cec783344e
2 changed files with 2 additions and 1 deletions

View 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)

View 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);
});