add missing (empty) default for swtch; close #364

This commit is contained in:
Yukihiro Matsumoto
2012-07-13 14:35:18 +09:00
parent 48c73ac630
commit bbec03bb7a
7 changed files with 24 additions and 2 deletions
+6 -1
View File
@@ -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];