More exception var disuse warnings

This commit is contained in:
Marek Roszko 2021-02-20 14:29:11 -05:00
parent e4ef531f7d
commit b82fcbcad6
4 changed files with 5 additions and 5 deletions

View File

@ -194,7 +194,7 @@ void PCB_BASE_FRAME::FocusOnItem( BOARD_ITEM* aItem )
{
lastItem = GetBoard()->GetItem( lastBrightenedItemID );
}
catch( const boost::uuids::entropy_error& e )
catch( const boost::uuids::entropy_error& )
{
wxLogError( "A Boost UUID entropy exception was thrown in %s:%s.", __FILE__, __FUNCTION__ );
}

View File

@ -374,7 +374,7 @@ bool WriteDRCReport( BOARD* aBoard, const wxString& aFileName, EDA_UNITS aUnits,
{
engine->InitEngine( drcRulesPath );
}
catch( PARSE_ERROR& pe )
catch( PARSE_ERROR& )
{
return false;
}

View File

@ -224,7 +224,7 @@ void BOARD_INSPECTION_TOOL::reportClearance( DRC_CONSTRAINT_T aClearanceType, PC
{
drcEngine.InitEngine( m_frame->GetDesignRulesPath() );
}
catch( PARSE_ERROR& pe )
catch( PARSE_ERROR& )
{
r->Report( "" );
r->Report( _( "Report incomplete: could not compile custom design rules. " )
@ -490,7 +490,7 @@ int BOARD_INSPECTION_TOOL::InspectConstraints( const TOOL_EVENT& aEvent )
{
drcEngine.InitEngine( m_frame->GetDesignRulesPath() );
}
catch( PARSE_ERROR& pe )
catch( PARSE_ERROR& )
{
compileError = true;
}

View File

@ -2119,7 +2119,7 @@ int DRAWING_TOOL::DrawVia( const TOOL_EVENT& aEvent )
m_worstClearance = std::max( m_worstClearance, pad->GetLocalClearance() );
}
}
catch( PARSE_ERROR& pe )
catch( PARSE_ERROR& )
{
}
}