diff options
author | Kefu Chai <kchai@redhat.com> | 2020-11-16 07:58:22 +0100 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2020-11-16 08:38:26 +0100 |
commit | c39590ba408faf776ee21d6d3b796092145655ce (patch) | |
tree | c10b3aa1ca9e25645d67c2e2bc6a141a6d3e26de /src/messages/MMgrDigest.h | |
parent | Merge PR #34842 into master (diff) | |
download | ceph-c39590ba408faf776ee21d6d3b796092145655ce.tar.xz ceph-c39590ba408faf776ee21d6d3b796092145655ce.zip |
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 <kchai@redhat.com>
Diffstat (limited to 'src/messages/MMgrDigest.h')
-rw-r--r-- | src/messages/MMgrDigest.h | 2 |
1 files changed, 1 insertions, 1 deletions
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; |