diff --git a/eeschema/tools/ee_inspection_tool.cpp b/eeschema/tools/ee_inspection_tool.cpp index ea2e50b929..9310189c90 100644 --- a/eeschema/tools/ee_inspection_tool.cpp +++ b/eeschema/tools/ee_inspection_tool.cpp @@ -226,8 +226,8 @@ void EE_INSPECTION_TOOL::checkPart( LIB_PART* aPart ) bgcolor.GetAsString( wxC2S_HTML_SYNTAX ), fgcolor.GetAsString( wxC2S_HTML_SYNTAX ) ); - for( auto& msg : messages ) - outmsg += msg; + for( auto& msgPart : messages ) + outmsg += msgPart; outmsg += ""; diff --git a/pcbnew/dialogs/dialog_drc.cpp b/pcbnew/dialogs/dialog_drc.cpp index dfa973de73..8dee8ef315 100644 --- a/pcbnew/dialogs/dialog_drc.cpp +++ b/pcbnew/dialogs/dialog_drc.cpp @@ -164,7 +164,7 @@ void DIALOG_DRC_CONTROL::setDRCParameters() void DIALOG_DRC_CONTROL::syncCheckboxes() { - m_showAll->SetValue( m_severities == DRC_SHOW_ERRORS | DRC_SHOW_WARNINGS | DRC_SHOW_INFOS ); + m_showAll->SetValue( m_severities == ( DRC_SHOW_ERRORS | DRC_SHOW_WARNINGS | DRC_SHOW_INFOS ) ); m_showErrors->SetValue( m_severities & DRC_SHOW_ERRORS ); m_showWarnings->SetValue( m_severities & DRC_SHOW_WARNINGS ); m_showInfos->SetValue( m_severities & DRC_SHOW_INFOS );