Remove unused variables

Noticed by gcc 4.6.0.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Johannes Schindelin
2011-03-22 13:50:08 +01:00
committed by Junio C Hamano
parent c2e86addb8
commit c0aa335c95
7 changed files with 5 additions and 19 deletions

View File

@ -140,11 +140,10 @@ static int traverse_reachable(void)
int result = 0;
while (pending.nr) {
struct object_array_entry *entry;
struct object *obj, *parent;
struct object *obj;
entry = pending.objects + --pending.nr;
obj = entry->item;
parent = (struct object *) entry->name;
result |= traverse_one_object(obj);
}
return !!result;