[Sheepdog] [PATCH] silence gcc warning

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Thu Apr 22 13:30:13 CEST 2010


looks like the warning is bogus. Just silence gcc

Signed-off-by: FUJITA Tomonori <fujita.tomonori at lab.ntt.co.jp>
---
 collie/store.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/collie/store.c b/collie/store.c
index b35a656..f7e22e8 100644
--- a/collie/store.c
+++ b/collie/store.c
@@ -1151,7 +1151,7 @@ static void recover_one(struct work *work, int idx)
 		cur_entry[SD_MAX_NODES];
 	int old_nr, cur_nr;
 	uint32_t epoch = rw->epoch;
-	int i, my_idx = -1, copy_idx, cur_idx = -1;
+	int i, my_idx = -1, copy_idx = 0, cur_idx = -1;
 	int is_failed_oid = 0;
 
 	eprintf("%d %d, %16lx\n", rw->done, rw->count, oid);
-- 
1.6.5




More information about the sheepdog mailing list