diff options
author | Oliver Stöneberg <firewave@users.noreply.github.com> | 2014-09-08 12:00:45 +0000 |
---|---|---|
committer | Oliver Stöneberg <firewave@users.noreply.github.com> | 2014-09-08 12:00:45 +0000 |
commit | 3568cf772fd4109cf437531aeda7b384cc3af786 (patch) | |
tree | eb17d8fae8ef89d0f5dffc3afabfbb0018f766bb /src/mess | |
parent | ad0cdb4ad20c67092de0412b768a6e2f52f19ff9 (diff) |
fixed most of the -Wunreachable-code-break and -Wunreachable-code-return warnings of clang 3.5 when compiling MESS (nw)
Diffstat (limited to 'src/mess')
33 files changed, 18 insertions, 77 deletions
diff --git a/src/mess/drivers/fmtowns.c b/src/mess/drivers/fmtowns.c index 849d172301b..c0bbc9d8b06 100644 --- a/src/mess/drivers/fmtowns.c +++ b/src/mess/drivers/fmtowns.c @@ -2022,7 +2022,6 @@ READ8_MEMBER(towns_state::towns_volume_r) default: return 0; } - return 0; } WRITE8_MEMBER(towns_state::towns_volume_w) diff --git a/src/mess/drivers/hp49gp.c b/src/mess/drivers/hp49gp.c index ac3c94c2802..43f4cb15afe 100644 --- a/src/mess/drivers/hp49gp.c +++ b/src/mess/drivers/hp49gp.c @@ -151,19 +151,16 @@ int hp49gp_state::lcd_spi_line_r( int line) verboselog( 7, "LCD_SPI_LINE_1 -> %d\n", m_lcd_spi.l1); return m_lcd_spi.l1; } - break; case LCD_SPI_LINE_DATA : { verboselog( 7, "LCD_SPI_LINE_DATA -> %d\n", m_lcd_spi.data); return m_lcd_spi.data; } - break; case LCD_SPI_LINE_3 : { verboselog( 7, "LCD_SPI_LINE_3 -> %d\n", m_lcd_spi.l3); return m_lcd_spi.l3; } - break; } return 0; } diff --git a/src/mess/drivers/ip22.c b/src/mess/drivers/ip22.c index 4710ad2393b..109e77e4fee 100644 --- a/src/mess/drivers/ip22.c +++ b/src/mess/drivers/ip22.c @@ -316,7 +316,6 @@ READ32_MEMBER(ip22_state::hpc3_pbus6_r) //verboselog(0, "Unknown HPC PBUS6 Read: 0x%08x (%08x)\n", 0x1fbd9800 + ( offset << 2 ), mem_mask ); return 0; } - return 0; } WRITE32_MEMBER(ip22_state::hpc3_pbus6_w) @@ -434,7 +433,6 @@ READ32_MEMBER(ip22_state::hpc3_hd_enet_r) //verboselog((machine, 0, "Unknown HPC3 ENET/HDx Read: %08x (%08x)\n", 0x1fb90000 + ( offset << 2 ), mem_mask ); return 0; } - return 0; } WRITE32_MEMBER(ip22_state::hpc3_hd_enet_w) @@ -493,7 +491,6 @@ READ32_MEMBER(ip22_state::hpc3_hd0_r) //verboselog((machine, 0, "Unknown HPC3 HD0 Read: %08x (%08x) [%x] PC=%x\n", 0x1fbc0000 + ( offset << 2 ), mem_mask, offset, space.device().safe_pc() ); return 0; } - return 0; } WRITE32_MEMBER(ip22_state::hpc3_hd0_w) @@ -540,7 +537,6 @@ READ32_MEMBER(ip22_state::hpc3_pbus4_r) //verboselog((machine, 0, "Unknown HPC3 PBUS4 Read: %08x (%08x)\n", 0x1fbd9000 + ( offset << 2 ), mem_mask ); return 0; } - return 0; } WRITE32_MEMBER(ip22_state::hpc3_pbus4_w) @@ -1006,7 +1002,7 @@ WRITE32_MEMBER(ip22_state::hal2_w) return; /* FIXME: this code is never excuted */ //verboselog((machine, 0, " Read Back Index: %01x\n", ( data & H2_IAR_RB_INDEX ) ); - break; + //break; case 0x0040/4: //verboselog((machine, 0, "HAL2 Indirect Data Register 0 Write: 0x%08x (%08x)\n", data, mem_mask ); m_HAL2.nIDR[0] = data; diff --git a/src/mess/drivers/laser3k.c b/src/mess/drivers/laser3k.c index 59bef8c3147..3b0d6632ca3 100644 --- a/src/mess/drivers/laser3k.c +++ b/src/mess/drivers/laser3k.c @@ -394,7 +394,6 @@ READ8_MEMBER( laser3k_state::io_r ) m_strobe = 0; return rv; } - break; case 0x7c: return m_bank0val; diff --git a/src/mess/drivers/mac.c b/src/mess/drivers/mac.c index 9cadd4d57cb..093c081a3c7 100644 --- a/src/mess/drivers/mac.c +++ b/src/mess/drivers/mac.c @@ -547,7 +547,8 @@ READ8_MEMBER(mac_state::mac_5396_r) return m_539x_1->read(space, 2); } - return 0; + // never executed + //return 0; } WRITE8_MEMBER(mac_state::mac_5396_w) diff --git a/src/mess/drivers/mz2500.c b/src/mess/drivers/mz2500.c index 6258ffd4ebb..9508f5a7b27 100644 --- a/src/mess/drivers/mz2500.c +++ b/src/mess/drivers/mz2500.c @@ -821,12 +821,10 @@ UINT8 mz2500_state::mz2500_ram_read(UINT16 offset, UINT8 bank_num) else //PCG RAM return m_pcg_ram[offset]; } - break; case 0x3a: { return m_dic_rom[(offset & 0x1fff) + ((m_dic_bank & 0x1f)*0x2000)]; } - break; case 0x3c: case 0x3d: case 0x3e: @@ -834,10 +832,10 @@ UINT8 mz2500_state::mz2500_ram_read(UINT16 offset, UINT8 bank_num) { return m_phone_rom[offset+(cur_bank & 3)*0x2000]; } - break; default: return ram[offset+cur_bank*0x2000]; } + // never executed return 0xff; } diff --git a/src/mess/drivers/pc88va.c b/src/mess/drivers/pc88va.c index 4f98ce743b9..42b5fa58014 100644 --- a/src/mess/drivers/pc88va.c +++ b/src/mess/drivers/pc88va.c @@ -597,7 +597,6 @@ READ16_MEMBER(pc88va_state::sys_mem_r) return knj_ram[knj_offset]; } - break; case 0xc: // Dictionary ROM case 0xd: { diff --git a/src/mess/drivers/rainbow.c b/src/mess/drivers/rainbow.c index 73a3264b8c0..a0a58a540b0 100644 --- a/src/mess/drivers/rainbow.c +++ b/src/mess/drivers/rainbow.c @@ -769,7 +769,8 @@ READ8_MEMBER(rainbow_state::share_z80_r) return m_shared[offset]; } - return 0xff; + // never executed + //return 0xff; } WRITE8_MEMBER(rainbow_state::share_z80_w) diff --git a/src/mess/drivers/replicator.c b/src/mess/drivers/replicator.c index 16a843f36f3..504605414f5 100644 --- a/src/mess/drivers/replicator.c +++ b/src/mess/drivers/replicator.c @@ -202,7 +202,6 @@ READ8_MEMBER(replicator_state::port_r) printf("[%08X] Port A READ (A-axis signals + B-axis STEP&DIR)\n", m_maincpu->m_shifted_pc); #endif return 0x00; - break; } case AVR8_IO_PORTB: { @@ -210,7 +209,6 @@ READ8_MEMBER(replicator_state::port_r) printf("[%08X] Port B READ (SD-CS; 1280-MISO/MOSI/SCK; EX2-FAN/HEAT/PWR-CHECK; BLINK)\n", m_maincpu->m_shifted_pc); #endif return 0x00; - break; } case AVR8_IO_PORTC: { @@ -218,7 +216,6 @@ READ8_MEMBER(replicator_state::port_r) printf("[%08X] Port C READ (1280-EX1/EX2; LCD-signals; R&G-LED; DETECT)\n", m_maincpu->m_shifted_pc); #endif return DETECT; //indicated that the Interface board is present. - break; } case AVR8_IO_PORTD: { @@ -226,7 +223,6 @@ READ8_MEMBER(replicator_state::port_r) printf("[%08X] Port D READ (SDA/SCL; 1280-EX-TX/RX)\n", m_maincpu->m_shifted_pc); #endif return 0x00; - break; } case AVR8_IO_PORTE: { @@ -234,7 +230,6 @@ READ8_MEMBER(replicator_state::port_r) printf("[%08X] Port E READ (1280-TX/RX; THERMO-signals)\n", m_maincpu->m_shifted_pc); #endif return 0x00; - break; } case AVR8_IO_PORTF: { @@ -242,7 +237,6 @@ READ8_MEMBER(replicator_state::port_r) printf("[%08X] Port F READ (X-axis & Y-axis signals)\n", m_maincpu->m_shifted_pc); #endif return 0x00; - break; } case AVR8_IO_PORTG: { @@ -250,7 +244,6 @@ READ8_MEMBER(replicator_state::port_r) printf("[%08X] Port G READ (BUZZ; Cutoff-sr-check; B-axis EN; 1280-EX3/EX4)\n", m_maincpu->m_shifted_pc); #endif return 0x00; - break; } case AVR8_IO_PORTH: { @@ -258,7 +251,6 @@ READ8_MEMBER(replicator_state::port_r) printf("[%08X] Port H READ (cuttoff-text/reset; EX1-FAN/HEAT/PWR-CHECK; SD-CD/SD-WP)\n", m_maincpu->m_shifted_pc); #endif return 0x00; - break; } case AVR8_IO_PORTJ: { @@ -266,7 +258,6 @@ READ8_MEMBER(replicator_state::port_r) printf("[%08X] Port J READ (Interface buttons; POTS-SCL; B-axis-POT)\n", m_maincpu->m_shifted_pc); #endif return ioport("keypad")->read(); - break; } case AVR8_IO_PORTK: { @@ -274,7 +265,6 @@ READ8_MEMBER(replicator_state::port_r) printf("[%08X] Port K READ (Z-axis signals; HBP-THERM; 1280-EX5/6/7)\n", m_maincpu->m_shifted_pc); #endif return 0x00; - break; } case AVR8_IO_PORTL: { @@ -282,7 +272,6 @@ READ8_MEMBER(replicator_state::port_r) printf("[%08X] Port L READ (HBP; EXTRA-FET; X-MIN/MAX; Y-MIN/MAX; Z-MIN/MAX)\n", m_maincpu->m_shifted_pc); #endif return 0x00; - break; } } return 0; diff --git a/src/mess/drivers/smc777.c b/src/mess/drivers/smc777.c index 539b47367a1..08cd1a6566e 100644 --- a/src/mess/drivers/smc777.c +++ b/src/mess/drivers/smc777.c @@ -473,7 +473,6 @@ READ8_MEMBER(smc777_state::key_r) return (offset == 0) ? m_keyb_press : ((m_shift_press_flag << 6) | (m_keyb_press_flag << 2) | (m_keyb_press_flag)); } - break; default: { //if(offset == 1) @@ -483,7 +482,8 @@ READ8_MEMBER(smc777_state::key_r) } } - return 0x00; + // never executed + //return 0x00; } /* TODO: the packet commands strikes me as something I've already seen before, don't remember where however ... */ diff --git a/src/mess/drivers/vidbrain.c b/src/mess/drivers/vidbrain.c index 7ea34c3416b..ce2a5638b44 100644 --- a/src/mess/drivers/vidbrain.c +++ b/src/mess/drivers/vidbrain.c @@ -221,7 +221,6 @@ WRITE8_MEMBER( vidbrain_state::f3853_w ) case 3: // timer 8-bit polynomial counter fatalerror("%s: F3853 Timer not supported!\n", machine().describe_context()); - break; } } diff --git a/src/mess/machine/6883sam.c b/src/mess/machine/6883sam.c index b8ffbcab6f1..89bc062910f 100644 --- a/src/mess/machine/6883sam.c +++ b/src/mess/machine/6883sam.c @@ -425,7 +425,6 @@ void sam6883_device::horizontal_sync(void) default: fatalerror("Should not get here\n"); - return; } } diff --git a/src/mess/machine/apple2.c b/src/mess/machine/apple2.c index 92c6981c44b..09f59120dab 100644 --- a/src/mess/machine/apple2.c +++ b/src/mess/machine/apple2.c @@ -554,7 +554,8 @@ READ8_MEMBER(apple2_state::apple2_c1xx_r ) } // else fall through to floating bus - return apple2_getfloatingbusvalue(); + // never executed + //return apple2_getfloatingbusvalue(); } WRITE8_MEMBER(apple2_state::apple2_c1xx_w ) @@ -602,7 +603,8 @@ READ8_MEMBER(apple2_state::apple2_c3xx_r ) } // else fall through to floating bus - return apple2_getfloatingbusvalue(); + // never executed + //return apple2_getfloatingbusvalue(); } WRITE8_MEMBER(apple2_state::apple2_c3xx_w ) @@ -654,7 +656,8 @@ READ8_MEMBER(apple2_state::apple2_c4xx_r ) } // else fall through to floating bus - return apple2_getfloatingbusvalue(); + // never executed + //return apple2_getfloatingbusvalue(); } WRITE8_MEMBER ( apple2_state::apple2_c4xx_w ) diff --git a/src/mess/machine/apple2gs.c b/src/mess/machine/apple2gs.c index ab7226879bd..a82e3956f32 100644 --- a/src/mess/machine/apple2gs.c +++ b/src/mess/machine/apple2gs.c @@ -460,7 +460,6 @@ void apple2gs_state::adb_do_command() default: fatalerror("ADB command 0x%02x unimplemented\n", m_adb_command); - break; } m_adb_kmstatus |= 0x20; } @@ -583,8 +582,6 @@ void apple2gs_state::adb_write_datareg(UINT8 data) default: fatalerror("ADB command 0x%02x unimplemented\n", data); - break; - } if (m_adb_command_length > 0) diff --git a/src/mess/machine/c65.c b/src/mess/machine/c65.c index 67f28a77806..8060f05c54c 100644 --- a/src/mess/machine/c65.c +++ b/src/mess/machine/c65.c @@ -1035,7 +1035,6 @@ READ8_MEMBER( c65_state::c65_read_io ) return c65_ram_expansion_r(space, offset & 0x1f, mem_mask); /*return; ram expansion crtl optional */ } - break; case 0x100: case 0x200: case 0x300: diff --git a/src/mess/machine/concept.c b/src/mess/machine/concept.c index 78f4ddc2f71..9c30132e0f8 100644 --- a/src/mess/machine/concept.c +++ b/src/mess/machine/concept.c @@ -240,7 +240,6 @@ READ16_MEMBER(concept_state::concept_io_r) case 3: // IO3 registers case 4: // IO4 registers return m_exp[((offset >> 4) & 7) - 1]->reg_r(space, offset & 0x0f); - break; default: // ??? logerror("concept_io_r: Slot I/O memory accessed for unknown purpose at address 0x03%4.4x\n", offset << 1); @@ -254,7 +253,6 @@ READ16_MEMBER(concept_state::concept_io_r) case 4: // IO4 ROM LOG(("concept_io_r: Slot ROM memory accessed for slot %d at address 0x03%4.4x\n", ((offset >> 8) & 7) - 1, offset << 1)); return m_exp[((offset >> 8) & 7) - 1]->rom_r(space, offset & 0xff); - break; case 5: /* slot status */ @@ -304,12 +302,10 @@ READ16_MEMBER(concept_state::concept_io_r) case 1: /* NSR0 data comm port 0 */ return m_acia0->read(space, (offset & 3)); - break; case 2: /* NSR1 data comm port 1 */ return m_acia1->read(space, (offset & 3)); - break; case 3: /* NVIA versatile system interface */ @@ -318,7 +314,6 @@ READ16_MEMBER(concept_state::concept_io_r) via6522_device *via_0 = machine().device<via6522_device>("via6522_0"); return via_0->read(space, offset & 0xf); } - break; case 4: /* NCALM clock calendar address and strobe register */ @@ -365,7 +360,6 @@ WRITE16_MEMBER(concept_state::concept_io_w) case 3: // IO3 registers case 4: // IO4 registers return m_exp[((offset >> 4) & 7) - 1]->reg_w(space, offset & 0x0f, data); - break; default: // ??? logerror("concept_io_w: Slot I/O memory written for unknown purpose at address 0x03%4.4x, data: 0x%4.4x\n", offset << 1, data); @@ -379,7 +373,6 @@ WRITE16_MEMBER(concept_state::concept_io_w) case 4: // IO4 ROM LOG(("concept_io_w: Slot ROM memory written to for slot %d at address 0x03%4.4x, data: 0x%4.4x\n", ((offset >> 8) & 7) - 1, offset << 1, data)); return m_exp[((offset >> 8) & 7) - 1]->rom_w(space, offset & 0xff, data); - break; case 5: /* slot status */ diff --git a/src/mess/machine/fm_scsi.c b/src/mess/machine/fm_scsi.c index 6a2c44d1677..187539f2097 100644 --- a/src/mess/machine/fm_scsi.c +++ b/src/mess/machine/fm_scsi.c @@ -91,7 +91,8 @@ int fmscsi_device::get_scsi_cmd_len(UINT8 cbyte) fatalerror("fmscsi: Unknown SCSI command group %d\n", group); - return 6; + // never executed + //return 6; } void fmscsi_device::device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) diff --git a/src/mess/machine/genpc.c b/src/mess/machine/genpc.c index c919cceb077..b49aa1c2749 100644 --- a/src/mess/machine/genpc.c +++ b/src/mess/machine/genpc.c @@ -541,7 +541,6 @@ void ibm5160_mb_device::install_device(offs_t start, offs_t end, offs_t mask, of break; default: fatalerror("IBM5160_MOTHERBOARD: Bus width %d not supported\n", buswidth); - break; } } diff --git a/src/mess/machine/mac.c b/src/mess/machine/mac.c index c724c0934a0..75764ea349d 100644 --- a/src/mess/machine/mac.c +++ b/src/mess/machine/mac.c @@ -1231,10 +1231,7 @@ READ8_MEMBER(mac_state::mac_via_in_a) default: return 0x80; - } - - return 0x80; } READ8_MEMBER(mac_state::mac_via_in_a_pmu) @@ -1813,7 +1810,6 @@ void mac_state::machine_reset() default: fatalerror("mac: unknown clock\n"); - break; } // clear PMU response timer diff --git a/src/mess/machine/macpci.c b/src/mess/machine/macpci.c index bc5d738ad5b..d0ffe0f9916 100644 --- a/src/mess/machine/macpci.c +++ b/src/mess/machine/macpci.c @@ -197,7 +197,8 @@ READ8_MEMBER(macpci_state::mac_5396_r) return m_539x_1->read(space, 2); } - return 0; + // never executed + //return 0; } WRITE8_MEMBER(macpci_state::mac_5396_w) diff --git a/src/mess/machine/msx_matsushita.c b/src/mess/machine/msx_matsushita.c index 52c2ea201b1..bdf621e1487 100644 --- a/src/mess/machine/msx_matsushita.c +++ b/src/mess/machine/msx_matsushita.c @@ -78,7 +78,6 @@ READ8_MEMBER(msx_matsushita_device::io_read) m_pattern = (m_pattern << 2) | (m_pattern >> 6); return result; } - break; case 0x09: // Data if (m_address < m_sram.count()) diff --git a/src/mess/machine/msx_s1985.c b/src/mess/machine/msx_s1985.c index ab1ce03c297..aba2802922e 100644 --- a/src/mess/machine/msx_s1985.c +++ b/src/mess/machine/msx_s1985.c @@ -33,7 +33,6 @@ READ8_MEMBER(msx_s1985_device::io_read) m_7 = ( m_7 << 1 ) | ( m_7 >> 7 ); return data; } - break; default: printf("msx_s1985: unhandled read from offset %02x\n", offset); diff --git a/src/mess/machine/pc9801_118.c b/src/mess/machine/pc9801_118.c index 9dcf6e7d0c6..3bffeafed8f 100644 --- a/src/mess/machine/pc9801_118.c +++ b/src/mess/machine/pc9801_118.c @@ -154,7 +154,6 @@ void pc9801_118_device::install_device(offs_t start, offs_t end, offs_t mask, of break; default: fatalerror("PC-9801-118: Bus width %d not supported\n", buswidth); - break; } } diff --git a/src/mess/machine/pc9801_26.c b/src/mess/machine/pc9801_26.c index 9b3bb88b158..d3882cf70c9 100644 --- a/src/mess/machine/pc9801_26.c +++ b/src/mess/machine/pc9801_26.c @@ -146,7 +146,6 @@ void pc9801_26_device::install_device(offs_t start, offs_t end, offs_t mask, off break; default: fatalerror("PC-9801-26: Bus width %d not supported\n", buswidth); - break; } } diff --git a/src/mess/machine/pc9801_86.c b/src/mess/machine/pc9801_86.c index 10380c146fb..efe188a46e6 100644 --- a/src/mess/machine/pc9801_86.c +++ b/src/mess/machine/pc9801_86.c @@ -154,7 +154,6 @@ void pc9801_86_device::install_device(offs_t start, offs_t end, offs_t mask, off break; default: fatalerror("PC-9801-86: Bus width %d not supported\n", buswidth); - break; } } diff --git a/src/mess/machine/pce_cd.c b/src/mess/machine/pce_cd.c index 301d2bfaeee..d27194d72f7 100644 --- a/src/mess/machine/pce_cd.c +++ b/src/mess/machine/pce_cd.c @@ -1423,8 +1423,6 @@ READ8_MEMBER(pce_cd_device::acard_r) case 0x09: return m_acard_ctrl[r_num]; default: return 0; } - - return 0; } WRITE8_MEMBER(pce_cd_device::acard_w) diff --git a/src/mess/machine/psxcd.c b/src/mess/machine/psxcd.c index d29e9dc309f..9216ec947dd 100644 --- a/src/mess/machine/psxcd.c +++ b/src/mess/machine/psxcd.c @@ -1229,5 +1229,4 @@ int psxcd_device::add_system_event(int type, UINT64 t, command_result *ptr) } } fatalerror("psxcd: out of timers\n"); - return 0; } diff --git a/src/mess/video/apple2.c b/src/mess/video/apple2.c index 82fb8b12702..34e949c4db9 100644 --- a/src/mess/video/apple2.c +++ b/src/mess/video/apple2.c @@ -334,7 +334,6 @@ void apple2_state::apple2_hires_draw(bitmap_ind16 &bitmap, const rectangle &clip default: fatalerror("Invalid column count\n"); - break; } } @@ -447,7 +446,6 @@ void apple2_state::apple2_hires_draw(bitmap_ind16 &bitmap, const rectangle &clip default: fatalerror("Invalid column count\n"); - break; } } } diff --git a/src/mess/video/fm7.c b/src/mess/video/fm7.c index 6a14914ec16..9d7c34604c7 100644 --- a/src/mess/video/fm7.c +++ b/src/mess/video/fm7.c @@ -1162,7 +1162,6 @@ READ8_MEMBER(fm7_state::fm77av_alu_r) logerror("ALU: read from invalid register 0x%02x\n",offset); return 0xff; } - return 0xff; } WRITE8_MEMBER(fm7_state::fm77av_alu_w) @@ -1341,7 +1340,6 @@ READ8_MEMBER(fm7_state::fm7_sub_ram_ports_banked_r) logerror("Unmapped read from sub CPU port 0xd%03x via MMR banking\n",offset); return 0xff; } - return 0xff; } WRITE8_MEMBER(fm7_state::fm7_sub_ram_ports_banked_w) diff --git a/src/mess/video/gba.c b/src/mess/video/gba.c index df584dfea13..40cb5d88977 100644 --- a/src/mess/video/gba.c +++ b/src/mess/video/gba.c @@ -1877,7 +1877,6 @@ void gba_state::draw_scanline(int y) break; default: fatalerror("Invalid screen mode (6 or 7)!\n"); - break; } for (int x = 0; x < 240; x++) diff --git a/src/mess/video/gime.c b/src/mess/video/gime.c index 8e06785bf67..2dee45caa48 100644 --- a/src/mess/video/gime.c +++ b/src/mess/video/gime.c @@ -469,7 +469,6 @@ const char *gime_base_device::timer_type_string(void) break; default: fatalerror("Should not get here\n"); - break; } return result; } @@ -1252,7 +1251,6 @@ void gime_base_device::update_border(UINT16 physical_scanline) break; default: fatalerror("Should not get here\n"); - break; } } else @@ -1319,7 +1317,6 @@ ATTR_FORCE_INLINE UINT16 gime_base_device::get_lines_per_row(void) default: fatalerror("Should not get here\n"); - break; } } else @@ -1350,7 +1347,6 @@ ATTR_FORCE_INLINE UINT16 gime_base_device::get_lines_per_row(void) break; default: fatalerror("Should not get here\n"); - break; } } return lines_per_row; @@ -1498,7 +1494,6 @@ void gime_base_device::record_body_scanline(UINT16 physical_scanline, UINT16 log default: /* should not get here */ fatalerror("Should not get here\n"); - return; } } else @@ -1523,7 +1518,6 @@ void gime_base_device::record_body_scanline(UINT16 physical_scanline, UINT16 log case 0x1C: pitch = record_scanline_res<160, &gime_base_device::get_data_without_attributes, false>(physical_scanline); break; default: fatalerror("Should not get here\n"); - return; } } else @@ -1541,7 +1535,6 @@ void gime_base_device::record_body_scanline(UINT16 physical_scanline, UINT16 log case 0x15: pitch = record_scanline_res< 80, &gime_base_device::get_data_with_attributes, true>(physical_scanline); break; default: fatalerror("Should not get here\n"); - return; } } @@ -1616,7 +1609,6 @@ void gime_base_device::update_geometry(void) default: fatalerror("Should not get here\n"); - break; } // bit 3 of $FF99 controls "wideness" @@ -1639,7 +1631,6 @@ void gime_base_device::update_geometry(void) UINT32 gime_base_device::emit_dummy_samples(const scanline_record *scanline, int sample_start, int sample_count, pixel_t *pixels, const pixel_t *palette) { fatalerror("Should not get here\n"); - return 0; } //------------------------------------------------- diff --git a/src/mess/video/mac.c b/src/mess/video/mac.c index abeda9cd450..79c1b527c6b 100644 --- a/src/mess/video/mac.c +++ b/src/mess/video/mac.c @@ -1213,7 +1213,6 @@ READ32_MEMBER(mac_state::macwd_r) { return 0; } - break; default: // printf("macwd_r: @ %x, mask %08x (PC=%x)\n", offset, mem_mask, m_maincpu->pc()); diff --git a/src/mess/video/newport.c b/src/mess/video/newport.c index 51a0e836daa..eb1b680e95c 100644 --- a/src/mess/video/newport.c +++ b/src/mess/video/newport.c @@ -471,7 +471,6 @@ READ32_MEMBER( newport_video_device::vc2_r ) //verboselog(machine(), 2, "Unknown VC2 Register Read: %02x\n", m_REX3.nDCBRegSelect ); return 0; } - return 0; } WRITE32_MEMBER( newport_video_device::vc2_w ) @@ -873,7 +872,6 @@ READ32_MEMBER( newport_video_device::rex3_r ) //verboselog(machine(), 2, "Unknown REX3 Read: %08x (%08x)\n", 0x1f0f0000 + ( offset << 2 ), mem_mask ); return 0; } - return 0; } void newport_video_device::DoREX3Command() |