mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add FALLTHROUGH
Pointed out by Coverity Scan ``` ** CID 1466646: Control flow issues (MISSING_BREAK) /ext/-test-/random/loop.c: 63 in loop_get_bytes() ```
This commit is contained in:
parent
2b07b24bdf
commit
5be75aad37
1 changed files with 3 additions and 0 deletions
|
@ -63,12 +63,15 @@ loop_get_bytes(rb_random_t *rnd, void *p, size_t n)
|
|||
case 0:
|
||||
*buf++ = (uint8_t)x;
|
||||
n--;
|
||||
/* FALLTHROUGH */
|
||||
case 3:
|
||||
*buf++ = (uint8_t)x;
|
||||
n--;
|
||||
/* FALLTHROUGH */
|
||||
case 2:
|
||||
*buf++ = (uint8_t)x;
|
||||
n--;
|
||||
/* FALLTHROUGH */
|
||||
case 1:
|
||||
*buf++ = (uint8_t)x;
|
||||
n--;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue