From e9aa9a759ad504902d8813af4ef5d541bbb6d985 Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Mon, 21 Sep 2020 12:18:46 +0100 Subject: [PATCH] Add missing break statements to prevent fallthrough Otherwise all RC_ITEM objects are severity info in the log --- common/rc_item.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/rc_item.cpp b/common/rc_item.cpp index 773b4a6417..6cceac68af 100644 --- a/common/rc_item.cpp +++ b/common/rc_item.cpp @@ -57,10 +57,10 @@ wxString RC_ITEM::ShowReport( EDA_UNITS aUnits, SEVERITY aSeverity, switch( aSeverity ) { - case RPT_SEVERITY_ERROR: severity = wxT( "Severity: error" ); - case RPT_SEVERITY_WARNING: severity = wxT( "Severity: warning" ); - case RPT_SEVERITY_ACTION: severity = wxT( "Severity: action" ); - case RPT_SEVERITY_INFO: severity = wxT( "Severity: info" ); + case RPT_SEVERITY_ERROR: severity = wxT( "Severity: error" ); break; + case RPT_SEVERITY_WARNING: severity = wxT( "Severity: warning" ); break; + case RPT_SEVERITY_ACTION: severity = wxT( "Severity: action" ); break; + case RPT_SEVERITY_INFO: severity = wxT( "Severity: info" ); break; default: ; };