Merge pull request #1073 from lemondrops/bugfix/compile_warnings

Fix several compilation warnings
This commit is contained in:
Miran Grča
2020-11-14 04:30:25 +01:00
committed by GitHub
4 changed files with 4 additions and 5 deletions

View File

@@ -183,7 +183,6 @@ static void
via_apollo_host_bridge_write(int func, int addr, uint8_t val, void *priv)
{
via_apollo_t *dev = (via_apollo_t *) priv;
pclog("%02x: %02x\n", addr, val);
if (func)
return;

View File

@@ -139,7 +139,7 @@ static x86seg *codegen_generate_ea_16_long(ir_data_t *ir, x86seg *op_ea_seg, uin
switch (cpu_rm & 7)
{
case 0: case 1: case 7:
case 0: case 1: case 7: default:
base_reg = IREG_EBX;
break;
case 2: case 3: case 6:
@@ -705,7 +705,7 @@ generate_call:
}
}
codegen_skip:
// codegen_skip:
if ((op_table == x86_dynarec_opcodes_REPNE || op_table == x86_dynarec_opcodes_REPE) && !op_table[opcode | op_32])
{
op_table = (OpFn *) x86_dynarec_opcodes;

View File

@@ -71,7 +71,7 @@ machine_init_ex(int m)
int ret = 0;
if (!bios_only) {
machine_log("Initializing as \"%s\"\n", machine_getname_ex(m));
machine_log("Initializing as \"%s\"\n", machine_getname());
is_vpc = 0;

View File

@@ -789,7 +789,7 @@ static const device_t access_bus_device = {
0,
0x03,
access_bus_init, access_bus_close, NULL,
{ NULL }, NULL, NULL,
NULL, NULL, NULL,
NULL
};