Remove fallthrough - breaks Clang on Mac/iOS
This commit is contained in:
parent
655cfb929d
commit
09bb3c3acf
|
@ -218,7 +218,7 @@ void Gb_Apu::run_until_( blip_time_t end_time )
|
||||||
case 6:
|
case 6:
|
||||||
// 128 Hz
|
// 128 Hz
|
||||||
square1.clock_sweep();
|
square1.clock_sweep();
|
||||||
[[fallthrough]];
|
/* fallthrough */
|
||||||
case 0:
|
case 0:
|
||||||
case 4:
|
case 4:
|
||||||
// 256 Hz
|
// 256 Hz
|
||||||
|
|
|
@ -1353,7 +1353,7 @@ void cheatsDelete(int number, bool restore)
|
||||||
} else {
|
} else {
|
||||||
CPUWriteMemory(cheatsList[x].address, cheatsList[x].oldValue);
|
CPUWriteMemory(cheatsList[x].address, cheatsList[x].oldValue);
|
||||||
}
|
}
|
||||||
[[fallthrough]];
|
/* fallthrough */
|
||||||
case GSA_16_BIT_ROM_PATCH:
|
case GSA_16_BIT_ROM_PATCH:
|
||||||
if (cheatsList[x].status & 1) {
|
if (cheatsList[x].status & 1) {
|
||||||
cheatsList[x].status &= ~1;
|
cheatsList[x].status &= ~1;
|
||||||
|
|
|
@ -2248,7 +2248,7 @@ void CPUSoftwareInterrupt(int comment)
|
||||||
case 0x2A:
|
case 0x2A:
|
||||||
BIOS_SndDriverJmpTableCopy();
|
BIOS_SndDriverJmpTableCopy();
|
||||||
// let it go, because we don't really emulate this function
|
// let it go, because we don't really emulate this function
|
||||||
[[fallthrough]];
|
/* fallthrough */
|
||||||
default:
|
default:
|
||||||
#ifdef GBA_LOGGING
|
#ifdef GBA_LOGGING
|
||||||
if (systemVerbose & VERBOSE_SWI) {
|
if (systemVerbose & VERBOSE_SWI) {
|
||||||
|
|
|
@ -131,7 +131,7 @@ static inline uint32_t CPUReadMemory(uint32_t address)
|
||||||
value = flashRead(address) * 0x01010101;
|
value = flashRead(address) * 0x01010101;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
[[fallthrough]];
|
/* fallthrough */
|
||||||
default:
|
default:
|
||||||
unreadable:
|
unreadable:
|
||||||
#ifdef GBA_LOGGING
|
#ifdef GBA_LOGGING
|
||||||
|
@ -281,7 +281,7 @@ static inline uint32_t CPUReadHalfWord(uint32_t address)
|
||||||
value = flashRead(address) * 0x0101;
|
value = flashRead(address) * 0x0101;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
[[fallthrough]];
|
/* fallthrough */
|
||||||
default:
|
default:
|
||||||
unreadable:
|
unreadable:
|
||||||
if (cpuDmaRunning|| ((reg[15].I - cpuDmaPC) == (armState ? 4 : 2))) {
|
if (cpuDmaRunning|| ((reg[15].I - cpuDmaPC) == (armState ? 4 : 2))) {
|
||||||
|
@ -407,7 +407,7 @@ static inline uint8_t CPUReadByte(uint32_t address)
|
||||||
case 0x8500:
|
case 0x8500:
|
||||||
return systemGetSensorY() >> 8;
|
return systemGetSensorY() >> 8;
|
||||||
}
|
}
|
||||||
[[fallthrough]];
|
/* fallthrough */
|
||||||
default:
|
default:
|
||||||
unreadable:
|
unreadable:
|
||||||
#ifdef GBA_LOGGING
|
#ifdef GBA_LOGGING
|
||||||
|
@ -627,7 +627,7 @@ static inline void CPUWriteHalfWord(uint32_t address, uint16_t value)
|
||||||
(*cpuSaveGameFunc)(address, (uint8_t)value);
|
(*cpuSaveGameFunc)(address, (uint8_t)value);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// fallthrough
|
/* fallthrough */
|
||||||
default:
|
default:
|
||||||
unwritable:
|
unwritable:
|
||||||
#ifdef GBA_LOGGING
|
#ifdef GBA_LOGGING
|
||||||
|
|
Loading…
Reference in New Issue