From: Kefu Chai Date: Fri, 6 Aug 2021 11:48:19 +0000 (+0800) Subject: test/crimson: mark final class "final" X-Git-Tag: v17.1.0~1177^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F42700%2Fhead;p=ceph.git test/crimson: mark final class "final" 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 --- diff --git a/src/test/crimson/seastore/test_object_data_handler.cc b/src/test/crimson/seastore/test_object_data_handler.cc index 972598aa968..2631ebb1cbe 100644 --- a/src/test/crimson/seastore/test_object_data_handler.cc +++ b/src/test/crimson/seastore/test_object_data_handler.cc @@ -17,7 +17,7 @@ namespace { } } -class TestOnode : public Onode { +class TestOnode final : public Onode { onode_layout_t layout; bool dirty = false;