]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/crimson: mark final class "final" 42700/head
authorKefu Chai <kchai@redhat.com>
Fri, 6 Aug 2021 11:48:19 +0000 (19:48 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 6 Aug 2021 11:48:20 +0000 (19:48 +0800)
silences warning from Clang like:

../src/test/crimson/seastore/test_object_data_handler.cc:33:16: warning: class with destructor marked 'final' cannot be inherited from [-Wfinal-dtor-non-final-class]
  ~TestOnode() final = default;
               ^
../src/test/crimson/seastore/test_object_data_handler.cc:20:7: note: mark 'TestOnode' as 'final' to silence this warning
class TestOnode : public Onode {
      ^
1 warning generated.

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

index 972598aa968f55e4bad7c526bbbe73c37b9eae07..2631ebb1cbe7038f1e3ec4a10b6170bad47d6f4c 100644 (file)
@@ -17,7 +17,7 @@ namespace {
   }
 }
 
-class TestOnode : public Onode {
+class TestOnode final : public Onode {
   onode_layout_t layout;
   bool dirty = false;