From 0dda920c1d1e39427b4b52c26ff09e9534906ef2 Mon Sep 17 00:00:00 2001 From: Aapo Vienamo Date: Tue, 1 Oct 2019 00:30:53 +0300 Subject: [PATCH] VerifyWidget: Handle Severity::None case in Verify() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The case body is empty because VolumeVerifier doesn't actually report problems with severity of None. Fixes "warning: enumeration value ‘None’ not handled in switch [-Wswitch]" warning reported by gcc. --- Source/Core/DolphinQt/Config/VerifyWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Core/DolphinQt/Config/VerifyWidget.cpp b/Source/Core/DolphinQt/Config/VerifyWidget.cpp index 488343fc76..67ad66b9d6 100644 --- a/Source/Core/DolphinQt/Config/VerifyWidget.cpp +++ b/Source/Core/DolphinQt/Config/VerifyWidget.cpp @@ -138,6 +138,8 @@ void VerifyWidget::Verify() case DiscIO::VolumeVerifier::Severity::High: severity = tr("High"); break; + case DiscIO::VolumeVerifier::Severity::None: + break; } SetProblemCellText(i, 0, QString::fromStdString(problem.text));