]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/os: mark class with "final" dtor "final" 37565/head
authorKefu Chai <kchai@redhat.com>
Tue, 6 Oct 2020 11:09:18 +0000 (19:09 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 6 Oct 2020 14:22:25 +0000 (22:22 +0800)
commit55216a78ab6432670380b62320bac30e07a2aeec
tree3d36c91d974d25edb3b399fcc78b42057955f6c4
parent6336f72244d26c4d92c62770eb8d54c5ccc6d337
crimson/os: mark class with "final" dtor "final"

to silence warning like

scheduler.cc:145:30: warning: class with destructor marked 'final' cannot be inherited from [-Wfinal-dtor-non-final-class]
  ~ClassedOpQueueScheduler() final {};
                             ^
/home/jenkins-build/build/workspace/ceph-perf-crimson/ceph-pr/src/crimson/osd/scheduler/scheduler.cc:52:7: note: mark 'ClassedOpQueueScheduler<T>' as 'final' to silence this warning
class ClassedOpQueueScheduler : public Scheduler {
      ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/scheduler/scheduler.cc