]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/os: mark unused variable [[maybe_unused]] 38028/head
authorKefu Chai <kchai@redhat.com>
Wed, 11 Nov 2020 15:22:08 +0000 (23:22 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 11 Nov 2020 15:23:20 +0000 (23:23 +0800)
commit5f1ed9a780366a98669d6b2ac4ccfb3408542b0c
tree0fefc01f0badabcb1ff131d7a1593716cadcd3d2
parent9929588ce33aa9d87a515b416a78fd6674a34a04
crimson/os: mark unused variable [[maybe_unused]]

silences the warning when building with -DNDEBUG:

segment_cleaner.h:399:10: warning: unused variable ‘ret’ [-Wunused-variable]
  399 |     auto ret = space_tracker->allocate(
      |          ^~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/seastore/segment_cleaner.h