]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/crimson: do not discard returned future<> 42808/head
authorKefu Chai <kchai@redhat.com>
Tue, 17 Aug 2021 06:11:20 +0000 (14:11 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 17 Aug 2021 06:27:09 +0000 (14:27 +0800)
commit65df8b1e787c7facc5740b7a94c648f127d17441
treed9890070dfe3e1666bd620f4011f9c27fc48f63b
parenta4f542f7c0239fd851753ba5db6c272713ca8d0c
test/crimson: do not discard returned future<>

to silence following warning:

../src/test/crimson/seastore/test_randomblock_manager.cc:122:7: warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]
      rbm_manager->add_free_extent(t.allocated_blocks, r.first * DEFAULT_BLOCK_SIZE,
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/crimson/seastore/test_randomblock_manager.cc