gc.c: fix RVALUE_zero initializer warning after gcnext removal

the second NULL in the initializer was for the removed gcnext field,
causing "makes integer from pointer" warning on the tt bitfield.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2026-02-12 13:39:38 +09:00
parent 31fea1709f
commit 0bc0700fa4
+1 -1
View File
@@ -467,7 +467,7 @@ mrb_gc_unregister(mrb_state *mrb, mrb_value obj)
MRB_API struct RBasic*
mrb_obj_alloc(mrb_state *mrb, enum mrb_vtype ttype, struct RClass *cls)
{
static const RVALUE RVALUE_zero = { { { NULL, NULL, MRB_TT_FALSE } } };
static const RVALUE RVALUE_zero = { { { NULL, MRB_TT_FALSE } } };
mrb_gc *gc = &mrb->gc;
if (cls) {