summaryrefslogtreecommitdiffstats
path: root/src/messages/MClientCaps.h
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2020-11-16 07:58:22 +0100
committerKefu Chai <kchai@redhat.com>2020-11-16 08:38:26 +0100
commitc39590ba408faf776ee21d6d3b796092145655ce (patch)
treec10b3aa1ca9e25645d67c2e2bc6a141a6d3e26de /src/messages/MClientCaps.h
parentMerge PR #34842 into master (diff)
downloadceph-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/MClientCaps.h')
-rw-r--r--src/messages/MClientCaps.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/messages/MClientCaps.h b/src/messages/MClientCaps.h
index 34dc9ef9bf3..afde190bf33 100644
--- a/src/messages/MClientCaps.h
+++ b/src/messages/MClientCaps.h
@@ -19,7 +19,7 @@
#include "mds/mdstypes.h"
#include "include/ceph_features.h"
-class MClientCaps : public SafeMessage {
+class MClientCaps final : public SafeMessage {
private:
static constexpr int HEAD_VERSION = 11;