summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/viper.c
diff options
context:
space:
mode:
author Oliver Stöneberg <firewave@users.noreply.github.com>2014-09-09 19:04:23 +0000
committer Oliver Stöneberg <firewave@users.noreply.github.com>2014-09-09 19:04:23 +0000
commit30bb95b31d4f8b54b7019bc9f7280160df28c6b6 (patch)
treef067685f58a40d3e7db0fc8a9b309a895b7f75e9 /src/mame/drivers/viper.c
parent805bd51118024aea1dc689db2b4df0006f2e7fe4 (diff)
fixed most of the -Wunreachable-code-break and -Wunreachable-code-return warnings of clang 3.5 when compiling MAME (nw)
Diffstat (limited to 'src/mame/drivers/viper.c')
-rw-r--r--src/mame/drivers/viper.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mame/drivers/viper.c b/src/mame/drivers/viper.c
index cda792c6923..42a747923a0 100644
--- a/src/mame/drivers/viper.c
+++ b/src/mame/drivers/viper.c
@@ -1521,7 +1521,8 @@ static UINT32 voodoo3_pci_r(device_t *busdevice, device_t *device, int function,
default:
fatalerror("voodoo3_pci_r: %08X at %08X\n", reg, device->machine().device("maincpu")->safe_pc());
}
- return 0;
+ // never executed
+ //return 0;
}
static void voodoo3_pci_w(device_t *busdevice, device_t *device, int function, int reg, UINT32 data, UINT32 mem_mask)
@@ -1744,7 +1745,7 @@ void viper_state::DS2430_w(int bit)
{
case 0x33: ds2430_state = DS2430_STATE_READ_ROM; break;
case 0xcc: ds2430_state = DS2430_STATE_MEM_FUNCTION; break;
- default: fatalerror("DS2430_w: unimplemented rom command %02X\n", ds2430_cmd); break;
+ default: fatalerror("DS2430_w: unimplemented rom command %02X\n", ds2430_cmd);
}
}
break;
@@ -1758,7 +1759,7 @@ void viper_state::DS2430_w(int bit)
switch (ds2430_cmd)
{
case 0xf0: ds2430_state = DS2430_STATE_READ_MEM_ADDRESS; break;
- default: fatalerror("DS2430_w: unimplemented mem function %02X\n", ds2430_cmd); break;
+ default: fatalerror("DS2430_w: unimplemented mem function %02X\n", ds2430_cmd);
}
}
break;