mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
add missing (empty) default for swtch; close #364
This commit is contained in:
+6
-1
@@ -3041,6 +3041,8 @@ backref_error(parser_state *p, node *n)
|
||||
case NODE_BACK_REF:
|
||||
yyerror_i(p, "can't set variable $%c", (int)(intptr_t)n->cdr);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3722,7 +3724,7 @@ parser_yylex(parser_state *p)
|
||||
}
|
||||
if (isspace(c)) {
|
||||
if (!IS_ARG()) {
|
||||
int c2 = 0;
|
||||
int c2;
|
||||
switch (c) {
|
||||
case ' ':
|
||||
c2 = 's';
|
||||
@@ -3742,6 +3744,9 @@ parser_yylex(parser_state *p)
|
||||
case '\f':
|
||||
c2 = 'f';
|
||||
break;
|
||||
default:
|
||||
c2 = 0;
|
||||
break;
|
||||
}
|
||||
if (c2) {
|
||||
char buf[256];
|
||||
|
||||
Reference in New Issue
Block a user