Clean up some warnings

This commit is contained in:
Ian McInerney 2020-02-28 00:06:52 +00:00
parent 992a553d43
commit d5ceb8252e
2 changed files with 3 additions and 3 deletions

View File

@ -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 += "</body></html>";

View File

@ -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 );