]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
bluestore/bluestore_types.h: fix UNINIT_CTOR warning
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 28 Jan 2016 10:29:04 +0000 (11:29 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 29 Jan 2016 20:51:17 +0000 (21:51 +0100)
Fix for:

CID 1322813 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
 uninit_member: Non-static class member seq is not initialized in
 this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/os/bluestore/bluestore_types.h

index c07412dab72ad2a431049293af633662ac42de17..ceb403a08ae9e88718e9c95a9e156daa57c0d046 100644 (file)
@@ -285,7 +285,7 @@ struct bluestore_wal_transaction_t {
 
   int64_t _bytes;  ///< cached byte count
 
-  bluestore_wal_transaction_t() : _bytes(-1) {}
+  bluestore_wal_transaction_t() : seq(0), _bytes(-1) {}
 
 #if 0
   no users for htis