From: Danny Al-Gaaf Date: Tue, 23 Feb 2016 18:21:41 +0000 (+0100) Subject: common/bit_vector.hpp: init scalar field in ctor X-Git-Tag: v11.1.0~327^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=988dd055b9fe180998677851ebab8b5f52c40588;p=ceph.git common/bit_vector.hpp: init scalar field in ctor Fix for: CID 1274314 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member m_header_crc is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/common/bit_vector.hpp b/src/common/bit_vector.hpp index 06600e9d8f13..62d924d984f2 100644 --- a/src/common/bit_vector.hpp +++ b/src/common/bit_vector.hpp @@ -115,7 +115,7 @@ template const uint32_t BitVector<_b>::BLOCK_SIZE = 4096; template -BitVector<_b>::BitVector() : m_size(0), m_crc_enabled(true) +BitVector<_b>::BitVector() : m_size(0), m_crc_enabled(true), m_header_crc(0) { }