Qt: Fix unhandled case warnings
Vicki Pfau vi@endrift.com
Sat, 05 Dec 2020 19:52:18 -0800
2 files changed,
13 insertions(+),
0 deletions(-)
M
src/platform/qt/CoreController.cpp
→
src/platform/qt/CoreController.cpp
@@ -654,6 +654,9 @@ case PLATFORM_GB:
GBYankROM(static_cast<GB*>(m_threadContext.core->board)); break; #endif + case PLATFORM_NONE: + LOG(QT, ERROR) << tr("Can't yank pack in unexpected platform!"); + break; } }
M
src/platform/qt/FrameView.cpp
→
src/platform/qt/FrameView.cpp
@@ -302,6 +302,10 @@ break;
case LayerId::WINDOW: m_vl->enableVideoLayer(m_vl, GBA_LAYER_WIN0 + layer.id.index, layer.enabled); break; + case LayerId::BACKDROP: + case LayerId::FRAME: + case LayerId::NONE: + break; } } if (m_overrideBackdrop.isValid()) {@@ -408,6 +412,10 @@ if (layer.id == m_active) {
gb->video.renderer->highlightWIN = true; } break; + case LayerId::FRAME: // TODO for SGB + case LayerId::BACKDROP: + case LayerId::NONE: + break; } } }@@ -433,6 +441,8 @@ case PLATFORM_GB:
injectGB(); break; #endif + case PLATFORM_NONE: + break; } if (m_ui.disableScanline->checkState() == Qt::Checked) { mVideoLoggerIgnoreAfterInjection(logger, (1 << DIRTY_PALETTE) | (1 << DIRTY_OAM) | (1 << DIRTY_REGISTER));