File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -1317,6 +1317,7 @@ gc_collect_young(PyThreadState *tstate,
1317
1317
survivor_count ++ ;
1318
1318
}
1319
1319
}
1320
+ (void )survivor_count ; // Silence compiler warning
1320
1321
gc_list_merge (& survivors , visited );
1321
1322
validate_old (gcstate );
1322
1323
gcstate -> young .count = 0 ;
@@ -1329,12 +1330,14 @@ gc_collect_young(PyThreadState *tstate,
1329
1330
add_stats (gcstate , 0 , stats );
1330
1331
}
1331
1332
1333
+ #ifndef NDEBUG
1332
1334
static inline int
1333
1335
IS_IN_VISITED (PyGC_Head * gc , int visited_space )
1334
1336
{
1335
1337
assert (visited_space == 0 || flip_old_space (visited_space ) == 0 );
1336
1338
return gc_old_space (gc ) == visited_space ;
1337
1339
}
1340
+ #endif
1338
1341
1339
1342
struct container_and_flag {
1340
1343
PyGC_Head * container ;
You can’t perform that action at this time.
0 commit comments