mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-10-31 20:37:52 +00:00
core: Silence unhandled enum in switch warnings
This commit is contained in:
parent
613b3671b7
commit
b4451c5e81
2 changed files with 5 additions and 10 deletions
|
@ -71,15 +71,8 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
void ExceptionRaised(u32 pc, Dynarmic::A32::Exception exception) override {
|
void ExceptionRaised(u32 pc, Dynarmic::A32::Exception exception) override {
|
||||||
switch (exception) {
|
|
||||||
case Dynarmic::A32::Exception::UndefinedInstruction:
|
|
||||||
case Dynarmic::A32::Exception::UnpredictableInstruction:
|
|
||||||
break;
|
|
||||||
case Dynarmic::A32::Exception::Breakpoint:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
LOG_CRITICAL(Core_ARM, "ExceptionRaised(exception = {}, pc = {:08X}, code = {:08X})",
|
LOG_CRITICAL(Core_ARM, "ExceptionRaised(exception = {}, pc = {:08X}, code = {:08X})",
|
||||||
static_cast<std::size_t>(exception), pc, MemoryReadCode(pc));
|
exception, pc, MemoryReadCode(pc));
|
||||||
UNIMPLEMENTED();
|
UNIMPLEMENTED();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -180,9 +180,11 @@ u32 BufferQueue::Query(QueryType type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case QueryType::NativeWindowFormat:
|
case QueryType::NativeWindowFormat:
|
||||||
return static_cast<u32>(PixelFormat::RGBA8888);
|
return static_cast<u32>(PixelFormat::RGBA8888);
|
||||||
|
case QueryType::NativeWindowWidth:
|
||||||
|
case QueryType::NativeWindowHeight:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
UNIMPLEMENTED_MSG("Unimplemented query type={}", type);
|
||||||
UNIMPLEMENTED();
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue