mruby-compiler: add default case to assignable switch statement

Add default case to the switch statement in assignable function to silence C++
compiler warnings about unhandled enumeration values. The default case documents
that other node types don't need special handling in this context.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-09-17 15:57:55 +09:00
parent 95c7414a1f
commit 8a88734e49
2 changed files with 1031 additions and 1025 deletions
+3
View File
@@ -2066,6 +2066,9 @@ assignable(parser_state *p, node *lhs)
if (p->in_def)
yyerror(NULL, p, "dynamic constant assignment");
break;
default:
/* Other node types don't need special handling in assignable */
break;
}
}
}
File diff suppressed because it is too large Load Diff