From c39590ba408faf776ee21d6d3b796092145655ce Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 16 Nov 2020 14:58:22 +0800 Subject: message: mark message classes "final" silences warnings like: src/messages/MOSDPGUpdateLogMissingReply.h:74:34: warning: class with destructor marked 'final' cannot be inherited from [-Wfinal-dtor-non-final-class] ~MOSDPGUpdateLogMissingReply() final {} ^ ../src/messages/MOSDPGUpdateLogMissingReply.h:21:7: note: mark 'MOSDPGUpdateLogMissingReply' as 'final' to silence this warning class MOSDPGUpdateLogMissingReply : public MOSDFastDispatchOp { ^ 1 warning generated. Signed-off-by: Kefu Chai --- src/messages/MMgrDigest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/messages/MMgrDigest.h') diff --git a/src/messages/MMgrDigest.h b/src/messages/MMgrDigest.h index e9cddceea5c..69f3368683a 100644 --- a/src/messages/MMgrDigest.h +++ b/src/messages/MMgrDigest.h @@ -22,7 +22,7 @@ * The mgr digest is a way for the mgr to subscribe to things * other than the cluster maps, which are needed by */ -class MMgrDigest : public Message { +class MMgrDigest final : public Message { public: ceph::buffer::list mon_status_json; ceph::buffer::list health_json; -- cgit v1.2.3