From 0bc0700fa4259cdd7ba869e963896512e2cb804f Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 12 Feb 2026 13:39:38 +0900 Subject: [PATCH] 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 --- src/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gc.c b/src/gc.c index bb5c00287..1b467c6a7 100644 --- a/src/gc.c +++ b/src/gc.c @@ -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) {