Silence more unused exception var warnings

This commit is contained in:
Marek Roszko 2021-02-20 11:58:12 -05:00
parent c12666ec43
commit 622baa6531
6 changed files with 7 additions and 7 deletions

View File

@ -271,7 +271,7 @@ bool PL_EDITOR_FRAME::SavePageLayoutDescrFile( const wxString& aFullFileName )
{ {
WS_DATA_MODEL::GetTheInstance().Save( tempFile.GetFullPath() ); WS_DATA_MODEL::GetTheInstance().Save( tempFile.GetFullPath() );
} }
catch( const IO_ERROR& ioe ) catch( const IO_ERROR& )
{ {
// In case we started a file but didn't fully write it, clean up // In case we started a file but didn't fully write it, clean up
wxRemoveFile( tempFile.GetFullPath() ); wxRemoveFile( tempFile.GetFullPath() );

View File

@ -205,7 +205,7 @@ void DIALOG_DRC::OnRunDRCClick( wxCommandEvent& aEvent )
{ {
drcTool->GetDRCEngine()->InitEngine( m_brdEditor->GetDesignRulesPath() ); drcTool->GetDRCEngine()->InitEngine( m_brdEditor->GetDesignRulesPath() );
} }
catch( PARSE_ERROR& pe ) catch( PARSE_ERROR& )
{ {
m_runningResultsBook->ChangeSelection( 0 ); // Display the "Tests Running..." tab m_runningResultsBook->ChangeSelection( 0 ); // Display the "Tests Running..." tab
m_DeleteCurrentMarkerButton->Enable( false ); m_DeleteCurrentMarkerButton->Enable( false );

View File

@ -504,7 +504,7 @@ void PANEL_PCBNEW_COLOR_SETTINGS::createPreviewItems()
{ {
pi.DoLoad( reader, m_preview->GetBoard(), nullptr ); pi.DoLoad( reader, m_preview->GetBoard(), nullptr );
} }
catch( const IO_ERROR& ioe ) catch( const IO_ERROR& )
{ {
return; return;
} }

View File

@ -442,7 +442,7 @@ bool PANEL_SETUP_RULES::TransferDataFromWindow()
return true; return true;
} }
} }
catch( PARSE_ERROR& pe ) catch( PARSE_ERROR& )
{ {
// Don't lock them in to the Setup dialog if they have bad rules. They've already // Don't lock them in to the Setup dialog if they have bad rules. They've already
// saved them so we can allow an exit. // saved them so we can allow an exit.

View File

@ -1041,7 +1041,7 @@ void PCB_EDIT_FRAME::onBoardLoaded()
{ {
drcTool->GetDRCEngine()->InitEngine( GetDesignRulesPath() ); drcTool->GetDRCEngine()->InitEngine( GetDesignRulesPath() );
} }
catch( PARSE_ERROR& pe ) catch( PARSE_ERROR& )
{ {
// Not sure this is the best place to tell the user their rules are buggy, so // Not sure this is the best place to tell the user their rules are buggy, so
// we'll stay quiet for now. Feel free to revisit this decision.... // we'll stay quiet for now. Feel free to revisit this decision....
@ -1644,7 +1644,7 @@ void PCB_EDIT_FRAME::CommonSettingsChanged( bool aEnvVarsChanged, bool aTextVars
drcTool->GetDRCEngine()->InitEngine( GetDesignRulesPath() ); drcTool->GetDRCEngine()->InitEngine( GetDesignRulesPath() );
infobar->Hide(); infobar->Hide();
} }
catch( PARSE_ERROR& pe ) catch( PARSE_ERROR& )
{ {
wxHyperlinkCtrl* button = new wxHyperlinkCtrl( infobar, wxID_ANY, _( "Edit design rules" ), wxHyperlinkCtrl* button = new wxHyperlinkCtrl( infobar, wxID_ANY, _( "Edit design rules" ),
wxEmptyString ); wxEmptyString );

View File

@ -153,7 +153,7 @@ FABMASTER::section_type FABMASTER::detectType( size_t aOffset )
{ {
row = rows.at( aOffset ); row = rows.at( aOffset );
} }
catch( std::out_of_range& e ) catch( std::out_of_range& )
{ {
return UNKNOWN_EXTRACT; return UNKNOWN_EXTRACT;
} }