Skip to content

Commit f5a0624

Browse files
JeffBezansonararslan
authored andcommitted
fix compiler warning in gc.c (#34079)
1 parent cb8e1cf commit f5a0624

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/gc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2413,8 +2413,7 @@ mark: {
24132413
}
24142414
const jl_datatype_layout_t *layout = jl_task_type->layout;
24152415
assert(layout->fielddesc_type == 0);
2416-
size_t nfields = layout->nfields;
2417-
assert(nfields > 0);
2416+
assert(layout->nfields > 0);
24182417
uint32_t npointers = layout->npointers;
24192418
obj8_begin = (uint8_t*)jl_dt_layout_ptrs(layout);
24202419
obj8_end = obj8_begin + npointers;

0 commit comments

Comments
 (0)