Skip to content

Commit 8f60f05

Browse files
committed
Revert "Silence compiler warnings in gc.c (python#117422)"
This reverts commit ddf814d.
1 parent 3155e44 commit 8f60f05

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Python/gc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,7 +1316,6 @@ gc_collect_young(PyThreadState *tstate,
13161316
survivor_count++;
13171317
}
13181318
}
1319-
(void)survivor_count; // Silence compiler warning
13201319
gc_list_merge(&survivors, visited);
13211320
validate_old(gcstate);
13221321
gcstate->young.count = 0;
@@ -1329,14 +1328,12 @@ gc_collect_young(PyThreadState *tstate,
13291328
add_stats(gcstate, 0, stats);
13301329
}
13311330

1332-
#ifndef NDEBUG
13331331
static inline int
13341332
IS_IN_VISITED(PyGC_Head *gc, int visited_space)
13351333
{
13361334
assert(visited_space == 0 || flip_old_space(visited_space) == 0);
13371335
return gc_old_space(gc) == visited_space;
13381336
}
1339-
#endif
13401337

13411338
struct container_and_flag {
13421339
PyGC_Head *container;

0 commit comments

Comments
 (0)