From 240fbe41f99e86563a48464386867cdc788fa930 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Wed, 20 Aug 2025 18:18:12 +0900 Subject: [PATCH] symbol.c: fix label at end of compound statement in sym_intern_common Add a null statement after the 'heap_allocation' label to silence warnings from C++ compilers. Co-authored-by: Gemini --- src/symbol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/symbol.c b/src/symbol.c index 71dde3d72..efdf9bb2a 100644 --- a/src/symbol.c +++ b/src/symbol.c @@ -321,7 +321,7 @@ sym_intern_common(mrb_state *mrb, const char *name, size_t len, mrb_bool lit) mrb->symtbl[sym] = symtbl_tag_literal(name); } else { - heap_allocation: + heap_allocation:; /* Always heap-allocate when not explicitly literal */ uint32_t ulen = (uint32_t)len; size_t ilen = mrb_packed_int_len(ulen);