diff --git a/pagelayout_editor/files.cpp b/pagelayout_editor/files.cpp index f5ef45805b..701e24a1b8 100644 --- a/pagelayout_editor/files.cpp +++ b/pagelayout_editor/files.cpp @@ -271,7 +271,7 @@ bool PL_EDITOR_FRAME::SavePageLayoutDescrFile( const wxString& aFullFileName ) { 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 wxRemoveFile( tempFile.GetFullPath() ); diff --git a/pcbnew/dialogs/dialog_drc.cpp b/pcbnew/dialogs/dialog_drc.cpp index 693b7e4384..9146c2f1e7 100644 --- a/pcbnew/dialogs/dialog_drc.cpp +++ b/pcbnew/dialogs/dialog_drc.cpp @@ -205,7 +205,7 @@ void DIALOG_DRC::OnRunDRCClick( wxCommandEvent& aEvent ) { drcTool->GetDRCEngine()->InitEngine( m_brdEditor->GetDesignRulesPath() ); } - catch( PARSE_ERROR& pe ) + catch( PARSE_ERROR& ) { m_runningResultsBook->ChangeSelection( 0 ); // Display the "Tests Running..." tab m_DeleteCurrentMarkerButton->Enable( false ); diff --git a/pcbnew/dialogs/panel_pcbnew_color_settings.cpp b/pcbnew/dialogs/panel_pcbnew_color_settings.cpp index 72efa37cbd..a2461ac8c6 100644 --- a/pcbnew/dialogs/panel_pcbnew_color_settings.cpp +++ b/pcbnew/dialogs/panel_pcbnew_color_settings.cpp @@ -504,7 +504,7 @@ void PANEL_PCBNEW_COLOR_SETTINGS::createPreviewItems() { pi.DoLoad( reader, m_preview->GetBoard(), nullptr ); } - catch( const IO_ERROR& ioe ) + catch( const IO_ERROR& ) { return; } diff --git a/pcbnew/dialogs/panel_setup_rules.cpp b/pcbnew/dialogs/panel_setup_rules.cpp index 40efa92b7a..62f717dc68 100644 --- a/pcbnew/dialogs/panel_setup_rules.cpp +++ b/pcbnew/dialogs/panel_setup_rules.cpp @@ -442,7 +442,7 @@ bool PANEL_SETUP_RULES::TransferDataFromWindow() 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 // saved them so we can allow an exit. diff --git a/pcbnew/pcb_edit_frame.cpp b/pcbnew/pcb_edit_frame.cpp index 78f0fdbad5..02b117b512 100644 --- a/pcbnew/pcb_edit_frame.cpp +++ b/pcbnew/pcb_edit_frame.cpp @@ -1041,7 +1041,7 @@ void PCB_EDIT_FRAME::onBoardLoaded() { 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 // 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() ); infobar->Hide(); } - catch( PARSE_ERROR& pe ) + catch( PARSE_ERROR& ) { wxHyperlinkCtrl* button = new wxHyperlinkCtrl( infobar, wxID_ANY, _( "Edit design rules" ), wxEmptyString ); diff --git a/pcbnew/plugins/fabmaster/import_fabmaster.cpp b/pcbnew/plugins/fabmaster/import_fabmaster.cpp index a10a5869a0..46867b97c7 100644 --- a/pcbnew/plugins/fabmaster/import_fabmaster.cpp +++ b/pcbnew/plugins/fabmaster/import_fabmaster.cpp @@ -153,7 +153,7 @@ FABMASTER::section_type FABMASTER::detectType( size_t aOffset ) { row = rows.at( aOffset ); } - catch( std::out_of_range& e ) + catch( std::out_of_range& ) { return UNKNOWN_EXTRACT; }