mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1028
-1025
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user