diff --git a/jscompile.c b/jscompile.c index d6aa084..325d1b2 100644 --- a/jscompile.c +++ b/jscompile.c @@ -538,7 +538,7 @@ static void ccall(JF, js_Ast *fun, js_Ast *args) ceval(J, F, fun, args); return; } - /* fall through */ + /* fallthrough */ default: cexp(J, F, fun); emit(J, F, OP_UNDEF); diff --git a/jsstring.c b/jsstring.c index 33d3bf4..9ac46ef 100644 --- a/jsstring.c +++ b/jsstring.c @@ -426,7 +426,8 @@ loop: while (*r) { if (*r == '$') { switch (*(++r)) { - case 0: --r; /* end of string; back up and fall through */ + case 0: --r; /* end of string; back up */ + /* fallthrough */ case '$': js_putc(J, &sb, '$'); break; case '`': js_putm(J, &sb, source, s); break; case '\'': js_puts(J, &sb, s + n); break; @@ -522,7 +523,8 @@ static void Sp_replace_string(js_State *J) while (*r) { if (*r == '$') { switch (*(++r)) { - case 0: --r; /* end of string; back up and fall through */ + case 0: --r; /* end of string; back up */ + /* fallthrough */ case '$': js_putc(J, &sb, '$'); break; case '&': js_putm(J, &sb, s, s + n); break; case '`': js_putm(J, &sb, source, s); break; diff --git a/regexp.c b/regexp.c index a4399fe..13e381b 100644 --- a/regexp.c +++ b/regexp.c @@ -110,7 +110,7 @@ static int nextrune(struct cstate *g) if (g->yychar == '\\') { g->source += chartorune(&g->yychar, g->source); switch (g->yychar) { - case 0: die(g, "unterminated escape sequence"); + case 0: die(g, "unterminated escape sequence"); break; case 'f': g->yychar = '\f'; return 0; case 'n': g->yychar = '\n'; return 0; case 'r': g->yychar = '\r'; return 0;