From 2ba125faf6a56b04ae5a3a46b2e911aa98676b42 Mon Sep 17 00:00:00 2001 From: Mark Callaghan Date: Fri, 11 Jan 2013 10:57:50 -0800 Subject: [PATCH] fix warning for unused variable Test Plan: compile Reviewers: dhruba Reviewed By: dhruba CC: leveldb Differential Revision: https://reviews.facebook.net/D7857 --- db/version_set.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/version_set.cc b/db/version_set.cc index b7d5eeecb..7310a72cb 100644 --- a/db/version_set.cc +++ b/db/version_set.cc @@ -588,10 +588,10 @@ void Version::ExtendOverlappingInputs( assert(user_cmp->Compare(flimit, user_begin) >= 0); } } + int count=0; #endif int startIndex = midIndex + 1; int endIndex = midIndex; - int count = 0; // check backwards from 'mid' to lower indices for (int i = midIndex; i >= 0 ; i--) {