]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
bluestore: silence Clang warning on possible uninitialize usuage 25702/head
authorWillem Jan Withagen <wjw@digiware.nl>
Tue, 25 Dec 2018 14:52:41 +0000 (15:52 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Tue, 25 Dec 2018 15:07:16 +0000 (16:07 +0100)
```
/home/wjw/ceph.head/ceph/src/os/bluestore/BlueStore.cc:5935:15: note: initialize the variable 'reserved' to silence this warning
  int reserved;
              ^
               = 0
1 warning generated.
```

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/os/bluestore/BlueStore.cc

index f932d190f2faa61ee0ba832a352d1bc9ca15de28..220d1c07f9579592140bc7ee8e405b5e9e189515 100644 (file)
@@ -5930,7 +5930,7 @@ int BlueStore::add_new_bluefs_device(int id, const string& dev_path)
 
   r = _mount_for_bluefs();
 
-  int reserved;
+  int reserved = 0;
   if (id == BlueFS::BDEV_NEWWAL) {
     string p = path + "/block.wal";
     r = _setup_block_symlink_or_file("block.wal", dev_path,