From c3e1466b46076f133b62f98e2c0b712bdde0e119 Mon Sep 17 00:00:00 2001 From: Zhiqiang Wang Date: Fri, 29 Aug 2014 16:39:40 +0800 Subject: [PATCH] Test: fixing a compile warning in ceph_objectstore_tool.cc MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/tools/ceph_objectstore_tool.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/ceph_objectstore_tool.cc b/src/tools/ceph_objectstore_tool.cc index 7b082a0298250..2f316a77b8d03 100644 --- a/src/tools/ceph_objectstore_tool.cc +++ b/src/tools/ceph_objectstore_tool.cc @@ -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 colls_to_check; if (pgidstr.length()) { colls_to_check.push_back(coll_t(pgid)); -- 2.39.5