summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/parse.y b/src/parse.y
index 292e60cfa..13643f68e 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -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];