os/bluestore: fix compiler warnings #11905

Merged
merged 1 commit into from Nov 11, 2016

Projects

None yet

2 participants

@xiexingguo
Contributor

As follows:

/home/jenkins-build/build/workspace/ceph-pull-requests/build/boost/include/boost/intrusive/pointer_plus_bits.hpp: In member function ‘bool BlueStore::ExtentMap::encode_some(uint32_t, uint32_t, ceph::bufferlist&, unsigned int*)’:
/home/jenkins-build/build/workspace/ceph-pull-requests/build/boost/include/boost/intrusive/pointer_plus_bits.hpp:76:7: warning: ‘dummy’ is used uninitialized in this function [-Wuninitialized]
n = pointer(uintptr_t(p) | (uintptr_t(n) & Mask));
^
/home/jenkins-build/build/workspace/ceph-pull-requests/src/os/bluestore/BlueStore.cc:1779:10: note: ‘dummy’ was declared here
Extent dummy(offset);

Signed-off-by: xie xingguo xie.xingguo@zte.com.cn

@xiexingguo xiexingguo os/bluestore: fix compiler warnings
As follows:

/home/jenkins-build/build/workspace/ceph-pull-requests/build/boost/include/boost/intrusive/pointer_plus_bits.hpp: In member function ‘bool BlueStore::ExtentMap::encode_some(uint32_t, uint32_t, ceph::bufferlist&, unsigned int*)’:
/home/jenkins-build/build/workspace/ceph-pull-requests/build/boost/include/boost/intrusive/pointer_plus_bits.hpp:76:7: warning: ‘dummy’ is used uninitialized in this function [-Wuninitialized]
       n = pointer(uintptr_t(p) | (uintptr_t(n) & Mask));
       ^
/home/jenkins-build/build/workspace/ceph-pull-requests/src/os/bluestore/BlueStore.cc:1779:10: note: ‘dummy’ was declared here
   Extent dummy(offset);

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
ef08431
@liewegas liewegas was assigned by xiexingguo Nov 11, 2016
@liewegas
Member

I'm confused why the compiler is warning at all?

@xiexingguo
Contributor

don't know...

But with these changes the warnings are gone.
Feel free to close if they are turned out to be irrelevant.

@liewegas liewegas merged commit 758272b into ceph:master Nov 11, 2016

2 checks passed

Signed-off-by all commits in this PR are signed
Details
default Build finished.
Details
@xiexingguo xiexingguo deleted the xiexingguo:xxg-wip-kill-boost-warn branch Nov 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment