]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
tools/rebuild_mondb: kill compiling warning 11117/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Sun, 18 Sep 2016 03:40:56 +0000 (11:40 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Sun, 18 Sep 2016 03:42:52 +0000 (11:42 +0800)
commitf16a31476a3f9b44a7c3dabf0dfd2a0d015b11b9
treea1d1eb26c21ae5b27ba2a504a34ac78d5ef15e2e
parenta6cf4a4503716f08d26ac6bbe24a9cab503a0e77
tools/rebuild_mondb: kill compiling warning

As follow:

[ 72%] Building CXX object src/tools/CMakeFiles/ceph-objectstore-tool.dir/RadosDump.cc.o
/home/jenkins-build/build/workspace/ceph-pull-requests/src/tools/rebuild_mondb.cc: In function ‘int update_mon_db(ObjectStore&, OSDSuperblock&, const string&, const string&)’:
/home/jenkins-build/build/workspace/ceph-pull-requests/src/tools/rebuild_mondb.cc:289:22: warning: ‘crc’ may be used uninitialized in this function [-Wmaybe-uninitialized]
         if (have_crc && osdmap.get_crc() != crc) {
                      ^
/home/jenkins-build/build/workspace/ceph-pull-requests/src/tools/rebuild_mondb.cc:238:14: note: ‘crc’ was declared here
     uint32_t crc;

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/tools/rebuild_mondb.cc