mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-24 21:45:12 +00:00
namco: Mark fallthrough cases
https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-fallthrough
This commit is contained in:
parent
602abdae74
commit
bccddc1a1d
1 changed files with 6 additions and 0 deletions
|
@ -388,6 +388,8 @@ void namco_device::polepos_sound_w(int offset, uint8_t data)
|
|||
|
||||
case 0x23:
|
||||
voice->waveform_select = data & 7;
|
||||
// https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-fallthrough
|
||||
// fall through
|
||||
case 0x02:
|
||||
case 0x03:
|
||||
voice->volume[0] = voice->volume[1] = 0;
|
||||
|
@ -469,6 +471,8 @@ void namco_15xx_device::namco_15xx_w(int offset, uint8_t data)
|
|||
|
||||
case 0x06:
|
||||
voice->waveform_select = (data >> 4) & 7;
|
||||
// https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-fallthrough
|
||||
// fall through
|
||||
case 0x04:
|
||||
case 0x05:
|
||||
/* the frequency has 20 bits */
|
||||
|
@ -542,6 +546,8 @@ void namco_cus30_device::namcos1_sound_w(int offset, uint8_t data)
|
|||
|
||||
case 0x01:
|
||||
voice->waveform_select = (data >> 4) & 15;
|
||||
// https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wimplicit-fallthrough
|
||||
// fall through
|
||||
case 0x02:
|
||||
case 0x03:
|
||||
/* the frequency has 20 bits */
|
||||
|
|
Loading…
Reference in a new issue