Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
b071dcd4
Commit
b071dcd4
authored
Jul 03, 2015
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2873 from cremno/fix-coverity-missing-break-in-switch
Coverity: fix missing break in switch defects
parents
ff49cf95
43df1d7e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
mrbgems/mruby-compiler/core/parse.y
mrbgems/mruby-compiler/core/parse.y
+2
-0
mrbgems/mruby-string-utf8/src/string.c
mrbgems/mruby-string-utf8/src/string.c
+1
-0
src/dump.c
src/dump.c
+0
-1
No files found.
mrbgems/mruby-compiler/core/parse.y
View file @
b071dcd4
...
@@ -4802,6 +4802,7 @@ parser_yylex(parser_state *p)
...
@@ -4802,6 +4802,7 @@ parser_yylex(parser_state *p)
case ')':
case ')':
case ']':
case ']':
p->paren_nest--;
p->paren_nest--;
/* fall through */
case '}':
case '}':
COND_LEXPOP();
COND_LEXPOP();
CMDARG_LEXPOP();
CMDARG_LEXPOP();
...
@@ -5133,6 +5134,7 @@ parser_yylex(parser_state *p)
...
@@ -5133,6 +5134,7 @@ parser_yylex(parser_state *p)
pushback(p, c);
pushback(p, c);
return '$';
return '$';
}
}
/* fall through */
case '0':
case '0':
tokadd(p, '$');
tokadd(p, '$');
}
}
...
...
mrbgems/mruby-string-utf8/src/string.c
View file @
b071dcd4
...
@@ -259,6 +259,7 @@ mrb_str_aref(mrb_state *mrb, mrb_value str, mrb_value indx)
...
@@ -259,6 +259,7 @@ mrb_str_aref(mrb_state *mrb, mrb_value str, mrb_value indx)
switch
(
mrb_type
(
indx
))
{
switch
(
mrb_type
(
indx
))
{
case
MRB_TT_FLOAT
:
case
MRB_TT_FLOAT
:
indx
=
mrb_flo_to_fixnum
(
mrb
,
indx
);
indx
=
mrb_flo_to_fixnum
(
mrb
,
indx
);
/* fall through */
case
MRB_TT_FIXNUM
:
case
MRB_TT_FIXNUM
:
idx
=
mrb_fixnum
(
indx
);
idx
=
mrb_fixnum
(
indx
);
...
...
src/dump.c
View file @
b071dcd4
...
@@ -819,7 +819,6 @@ write_rite_binary_header(mrb_state *mrb, size_t binary_size, uint8_t *bin, uint8
...
@@ -819,7 +819,6 @@ write_rite_binary_header(mrb_state *mrb, size_t binary_size, uint8_t *bin, uint8
uint32_t
offset
;
uint32_t
offset
;
switch
(
flags
&
DUMP_ENDIAN_NAT
)
{
switch
(
flags
&
DUMP_ENDIAN_NAT
)
{
default:
endian_big:
endian_big:
case
DUMP_ENDIAN_BIG
:
case
DUMP_ENDIAN_BIG
:
memcpy
(
header
->
binary_ident
,
RITE_BINARY_IDENT
,
sizeof
(
header
->
binary_ident
));
memcpy
(
header
->
binary_ident
,
RITE_BINARY_IDENT
,
sizeof
(
header
->
binary_ident
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment