Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67b1e05

Browse files
committed
Fix compiler warning
1 parent 6063dc8 commit 67b1e05

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Python/gc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,6 @@ validate_spaces(GCState *gcstate)
456456
static void
457457
validate_consistent_old_space(PyGC_Head *head)
458458
{
459-
PyGC_Head *prev = head;
460459
PyGC_Head *gc = GC_NEXT(head);
461460
if (gc == head) {
462461
return;
@@ -466,10 +465,8 @@ validate_consistent_old_space(PyGC_Head *head)
466465
PyGC_Head *truenext = GC_NEXT(gc);
467466
assert(truenext != NULL);
468467
assert(gc_old_space(gc) == old_space);
469-
prev = gc;
470468
gc = truenext;
471469
}
472-
assert(prev == GC_PREV(head));
473470
}
474471

475472

0 commit comments

Comments
 (0)