Remove fallthrough - breaks Clang on Mac/iOS

This commit is contained in:
LibretroAdmin 2022-10-07 10:57:28 +02:00
parent 655cfb929d
commit 09bb3c3acf
4 changed files with 7 additions and 7 deletions

View File

@ -218,7 +218,7 @@ void Gb_Apu::run_until_( blip_time_t end_time )
case 6:
// 128 Hz
square1.clock_sweep();
[[fallthrough]];
/* fallthrough */
case 0:
case 4:
// 256 Hz

View File

@ -1353,7 +1353,7 @@ void cheatsDelete(int number, bool restore)
} else {
CPUWriteMemory(cheatsList[x].address, cheatsList[x].oldValue);
}
[[fallthrough]];
/* fallthrough */
case GSA_16_BIT_ROM_PATCH:
if (cheatsList[x].status & 1) {
cheatsList[x].status &= ~1;

View File

@ -2248,7 +2248,7 @@ void CPUSoftwareInterrupt(int comment)
case 0x2A:
BIOS_SndDriverJmpTableCopy();
// let it go, because we don't really emulate this function
[[fallthrough]];
/* fallthrough */
default:
#ifdef GBA_LOGGING
if (systemVerbose & VERBOSE_SWI) {

View File

@ -131,7 +131,7 @@ static inline uint32_t CPUReadMemory(uint32_t address)
value = flashRead(address) * 0x01010101;
break;
}
[[fallthrough]];
/* fallthrough */
default:
unreadable:
#ifdef GBA_LOGGING
@ -281,7 +281,7 @@ static inline uint32_t CPUReadHalfWord(uint32_t address)
value = flashRead(address) * 0x0101;
break;
}
[[fallthrough]];
/* fallthrough */
default:
unreadable:
if (cpuDmaRunning|| ((reg[15].I - cpuDmaPC) == (armState ? 4 : 2))) {
@ -407,7 +407,7 @@ static inline uint8_t CPUReadByte(uint32_t address)
case 0x8500:
return systemGetSensorY() >> 8;
}
[[fallthrough]];
/* fallthrough */
default:
unreadable:
#ifdef GBA_LOGGING
@ -627,7 +627,7 @@ static inline void CPUWriteHalfWord(uint32_t address, uint16_t value)
(*cpuSaveGameFunc)(address, (uint8_t)value);
break;
}
// fallthrough
/* fallthrough */
default:
unwritable:
#ifdef GBA_LOGGING