]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/common: mark ExitBarrier final
authorKefu Chai <kchai@redhat.com>
Mon, 8 Feb 2021 13:43:09 +0000 (21:43 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 8 Feb 2021 14:09:46 +0000 (22:09 +0800)
to silence warnings like:

crimson/common/operation.h:394:20: warning: class with destructor marked
'final' cannot be inherited from [-Wfinal-dtor-non-final-class]
    ~ExitBarrier() final {
                   ^

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/common/operation.h

index 07806768a938fe3228286ecfa1755f1aeabe4357..77760ccebded3ba4e8ad63d2d6b4fb5a00c58ffb 100644 (file)
@@ -371,7 +371,7 @@ class OrderedExclusivePhase : public PipelineStageI {
     return name;
   }
 
-  class ExitBarrier : public PipelineExitBarrierI {
+  class ExitBarrier final : public PipelineExitBarrierI {
     OrderedExclusivePhase *phase;
   public:
     ExitBarrier(OrderedExclusivePhase *phase) : phase(phase) {}