mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user