cct is defined so it can be used by dout(), but when the source code is
compiled for crimson, dout() does not use cct at all, so in that case,
compiler complains like:
../src/os/bluestore/BlueStore.cc:17413:8: warning: unused variable 'cct' [-Wunused-variable]
auto cct = onode->c->store->cct;
^
1 warning generated.
in this change, cct is marked with [[maybe_unused]] to silence this
warning.
Signed-off-by: Kefu Chai <kchai@redhat.com>
//-------------------------------------------------------------------------
void BlueStore::ExtentMap::provide_shard_info_to_onode(bufferlist v, uint32_t shard_id)
{
- auto cct = onode->c->store->cct;
+ [[maybe_unused]] auto cct = onode->c->store->cct;
auto path = onode->c->store->path;
if (shard_id < shards.size()) {
auto p = &shards[shard_id];