]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Test: fixing a compile warning in ceph_objectstore_tool.cc 2353/head
authorZhiqiang Wang <wonzhq@hotmail.com>
Fri, 29 Aug 2014 08:39:40 +0000 (16:39 +0800)
committerZhiqiang Wang <wonzhq@hotmail.com>
Fri, 29 Aug 2014 08:39:40 +0000 (16:39 +0800)
For the compiler's sake:
tools/ceph_objectstore_tool.cc:2547:15: warning: â€˜r’ may be used
uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Zhiqiang Wang <wonzhq@hotmail.com>
src/tools/ceph_objectstore_tool.cc

index 7b082a029825000a8a39e488e4d30d0cc13e1e68..2f316a77b8d0328390f1056dd8fb46e474f645ce 100644 (file)
@@ -2151,7 +2151,7 @@ int main(int argc, char **argv)
   if (op == "list-lost" || op == "fix-lost") {
     unsigned LIST_AT_A_TIME = 100;
     unsigned scanned = 0;
-    int r;
+    int r = 0;
     vector<coll_t> colls_to_check;
     if (pgidstr.length()) {
       colls_to_check.push_back(coll_t(pgid));