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 <gemini@google.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-08-20 18:18:12 +09:00
parent 2cbb99c16d
commit 240fbe41f9
+1 -1
View File
@@ -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);