summaryrefslogtreecommitdiffstats
path: root/src/messages/MClientReclaim.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/MClientReclaim.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/MClientReclaim.h')
-rw-r--r--src/messages/MClientReclaim.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/messages/MClientReclaim.h b/src/messages/MClientReclaim.h
index f4033d40f56..f3f0ff09edc 100644
--- a/src/messages/MClientReclaim.h
+++ b/src/messages/MClientReclaim.h
@@ -18,7 +18,7 @@
#include "msg/Message.h"
-class MClientReclaim: public SafeMessage {
+class MClientReclaim final : public SafeMessage {
public:
static constexpr int HEAD_VERSION = 1;
static constexpr int COMPAT_VERSION = 1;