From: Danny Al-Gaaf Date: Tue, 23 Feb 2016 18:29:03 +0000 (+0100) Subject: mds/Capability.h: init scalar field in ctor X-Git-Tag: v11.1.0~327^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1ce29ddb178fcc2c0a3c6dd57831aa9c9fd2216e;p=ceph.git mds/Capability.h: init scalar field in ctor Fix for: CID 1019612 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member before is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member seq is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member last_issue is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/mds/Capability.h b/src/mds/Capability.h index ec10ae2d353..30b308549a9 100644 --- a/src/mds/Capability.h +++ b/src/mds/Capability.h @@ -125,7 +125,7 @@ public: struct revoke_info { __u32 before; ceph_seq_t seq, last_issue; - revoke_info() {} + revoke_info() : before(0), seq(0), last_issue(0) {} revoke_info(__u32 b, ceph_seq_t s, ceph_seq_t li) : before(b), seq(s), last_issue(li) {} void encode(bufferlist& bl) const; void decode(bufferlist::iterator& bl);