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/MExportDirCancel.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/MExportDirCancel.h')
-rw-r--r-- | src/messages/MExportDirCancel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/messages/MExportDirCancel.h b/src/messages/MExportDirCancel.h index 060515aec1e..50bba26792c 100644 --- a/src/messages/MExportDirCancel.h +++ b/src/messages/MExportDirCancel.h @@ -18,7 +18,7 @@ #include "include/types.h" #include "messages/MMDSOp.h" -class MExportDirCancel : public MMDSOp { +class MExportDirCancel final : public MMDSOp { private: static constexpr int HEAD_VERSION = 1; static constexpr int COMPAT_VERSION = 1; |