diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-07-03 15:03:01 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-07-03 15:03:01 +0900 |
| commit | b071dcd4fb7b5a36343210c595e44b62cee732b8 (patch) | |
| tree | 61926d84573953756966afb58bdc3cbdf5f243f7 /mrbgems/mruby-compiler/core/parse.y | |
| parent | ff49cf95fca2d1648f05dd636c8f8516c8edc815 (diff) | |
| parent | 43df1d7e3937162dd406dafeab79cd54dea13762 (diff) | |
| download | mruby-b071dcd4fb7b5a36343210c595e44b62cee732b8.tar.gz mruby-b071dcd4fb7b5a36343210c595e44b62cee732b8.zip | |
Merge pull request #2873 from cremno/fix-coverity-missing-break-in-switch
Coverity: fix missing break in switch defects
Diffstat (limited to 'mrbgems/mruby-compiler/core/parse.y')
| -rw-r--r-- | mrbgems/mruby-compiler/core/parse.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index f6a43d32b..64f0a8821 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -4802,6 +4802,7 @@ parser_yylex(parser_state *p) case ')': case ']': p->paren_nest--; + /* fall through */ case '}': COND_LEXPOP(); CMDARG_LEXPOP(); @@ -5133,6 +5134,7 @@ parser_yylex(parser_state *p) pushback(p, c); return '$'; } + /* fall through */ case '0': tokadd(p, '$'); } |
