Fix warnings for unreferenced local variables
This commit is contained in:
parent
3179e40b57
commit
7e47ef7471
|
@ -187,7 +187,7 @@ bool IsUTF8( const char* aString )
|
||||||
if( next > end )
|
if( next > end )
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
catch( const IO_ERROR& ioe )
|
catch( const IO_ERROR& )
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -264,7 +264,7 @@ void SCH_EDIT_FRAME::KiwayMailIn( KIWAY_EXPRESS& mail )
|
||||||
{
|
{
|
||||||
importFormat = std::stoi( payload.substr( 0, split ) );
|
importFormat = std::stoi( payload.substr( 0, split ) );
|
||||||
}
|
}
|
||||||
catch( std::invalid_argument& e )
|
catch( std::invalid_argument& )
|
||||||
{
|
{
|
||||||
wxFAIL;
|
wxFAIL;
|
||||||
importFormat = -1;
|
importFormat = -1;
|
||||||
|
|
|
@ -447,7 +447,7 @@ void DIALOG_EDIT_COMPONENTS_LIBID::onClickOrphansButton( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
Prj().SchSymbolLibTable()->EnumerateSymbolLib( lib, aliasNames );
|
Prj().SchSymbolLibTable()->EnumerateSymbolLib( lib, aliasNames );
|
||||||
}
|
}
|
||||||
catch( const IO_ERROR& e ) {} // ignore, it is handled below
|
catch( const IO_ERROR& ) {} // ignore, it is handled below
|
||||||
|
|
||||||
if( aliasNames.IsEmpty() )
|
if( aliasNames.IsEmpty() )
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -96,7 +96,7 @@ bool SCH_EDIT_FRAME::CreateArchiveLibrary( const wxString& aFileName )
|
||||||
|
|
||||||
part = GetLibPart( component->GetLibId(), true );
|
part = GetLibPart( component->GetLibId(), true );
|
||||||
}
|
}
|
||||||
catch( const IO_ERROR& ioe )
|
catch( const IO_ERROR& )
|
||||||
{
|
{
|
||||||
// Queue up error messages for later.
|
// Queue up error messages for later.
|
||||||
tmp.Printf( _( "Failed to add symbol %s to library file." ),
|
tmp.Printf( _( "Failed to add symbol %s to library file." ),
|
||||||
|
|
|
@ -340,7 +340,7 @@ bool SCH_COMPONENT::Resolve( SYMBOL_LIB_TABLE& aLibTable, PART_LIB* aCacheLib )
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch( const IO_ERROR& ioe )
|
catch( const IO_ERROR& )
|
||||||
{
|
{
|
||||||
wxLogDebug( "Cannot resolve library symbol %s", m_lib_id.Format().wx_str() );
|
wxLogDebug( "Cannot resolve library symbol %s", m_lib_id.Format().wx_str() );
|
||||||
}
|
}
|
||||||
|
|
|
@ -1171,7 +1171,7 @@ void SCH_EDIT_FRAME::OnOpenCvpcb( wxCommandEvent& event )
|
||||||
|
|
||||||
player->Raise();
|
player->Raise();
|
||||||
}
|
}
|
||||||
catch( const IO_ERROR& e )
|
catch( const IO_ERROR& )
|
||||||
{
|
{
|
||||||
DisplayError( this, _( "Could not open CvPcb" ) );
|
DisplayError( this, _( "Could not open CvPcb" ) );
|
||||||
}
|
}
|
||||||
|
|
|
@ -58,7 +58,7 @@ static void DisplayCmpDocAndKeywords( wxString& aSelection, void* aData )
|
||||||
{
|
{
|
||||||
part = libs->LoadSymbol( id );
|
part = libs->LoadSymbol( id );
|
||||||
}
|
}
|
||||||
catch( const IO_ERROR& ioe )
|
catch( const IO_ERROR& )
|
||||||
{
|
{
|
||||||
aSelection.Printf( _( "Error occurred loading symbol \"%s\" from library \"%s\"." ),
|
aSelection.Printf( _( "Error occurred loading symbol \"%s\" from library \"%s\"." ),
|
||||||
id.GetLibItemName().wx_str(), id.GetLibNickname().wx_str() );
|
id.GetLibItemName().wx_str(), id.GetLibNickname().wx_str() );
|
||||||
|
|
|
@ -111,7 +111,7 @@ void LIB_EDIT_FRAME::LoadOneSymbol()
|
||||||
{
|
{
|
||||||
alias = pi->LoadSymbol( filename, symbols[0] );
|
alias = pi->LoadSymbol( filename, symbols[0] );
|
||||||
}
|
}
|
||||||
catch( const IO_ERROR& ioe )
|
catch( const IO_ERROR& )
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -497,7 +497,7 @@ bool LIB_VIEW_FRAME::ReCreateListCmp()
|
||||||
Prj().SchSymbolLibTable()->EnumerateSymbolLib( m_libraryName, aliasNames,
|
Prj().SchSymbolLibTable()->EnumerateSymbolLib( m_libraryName, aliasNames,
|
||||||
m_listPowerCmpOnly );
|
m_listPowerCmpOnly );
|
||||||
}
|
}
|
||||||
catch( const IO_ERROR& e ) {} // ignore, it is handled below
|
catch( const IO_ERROR& ) {} // ignore, it is handled below
|
||||||
|
|
||||||
if( aliasNames.IsEmpty() )
|
if( aliasNames.IsEmpty() )
|
||||||
{
|
{
|
||||||
|
|
|
@ -195,7 +195,7 @@ void LIB_VIEW_FRAME::RedrawActiveWindow( wxDC* DC, bool EraseBg )
|
||||||
{
|
{
|
||||||
entry = Prj().SchSymbolLibTable()->LoadSymbol( id );
|
entry = Prj().SchSymbolLibTable()->LoadSymbol( id );
|
||||||
}
|
}
|
||||||
catch( const IO_ERROR& e ) {} // ignore, it is handled below
|
catch( const IO_ERROR& ) {} // ignore, it is handled below
|
||||||
|
|
||||||
if( !entry )
|
if( !entry )
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -160,7 +160,7 @@ void TUNER_SLIDER::onMaxTextEnter( wxCommandEvent& event )
|
||||||
SPICE_VALUE newMax( m_maxText->GetValue() );
|
SPICE_VALUE newMax( m_maxText->GetValue() );
|
||||||
SetMax( newMax );
|
SetMax( newMax );
|
||||||
}
|
}
|
||||||
catch( std::exception& e )
|
catch( std::exception& )
|
||||||
{
|
{
|
||||||
// Restore the previous value
|
// Restore the previous value
|
||||||
m_maxText->SetValue( m_max.ToOrigString() );
|
m_maxText->SetValue( m_max.ToOrigString() );
|
||||||
|
@ -176,7 +176,7 @@ void TUNER_SLIDER::onValueTextEnter( wxCommandEvent& event )
|
||||||
SetValue( newCur );
|
SetValue( newCur );
|
||||||
m_changed = true;
|
m_changed = true;
|
||||||
}
|
}
|
||||||
catch( std::exception& e )
|
catch( std::exception& )
|
||||||
{
|
{
|
||||||
// Restore the previous value
|
// Restore the previous value
|
||||||
m_valueText->SetValue( m_value.ToOrigString() );
|
m_valueText->SetValue( m_value.ToOrigString() );
|
||||||
|
@ -191,7 +191,7 @@ void TUNER_SLIDER::onMinTextEnter( wxCommandEvent& event )
|
||||||
SPICE_VALUE newMin( m_minText->GetValue() );
|
SPICE_VALUE newMin( m_minText->GetValue() );
|
||||||
SetMin( newMin );
|
SetMin( newMin );
|
||||||
}
|
}
|
||||||
catch( std::exception& e )
|
catch( std::exception& )
|
||||||
{
|
{
|
||||||
// Restore the previous value
|
// Restore the previous value
|
||||||
m_minText->SetValue( m_min.ToOrigString() );
|
m_minText->SetValue( m_min.ToOrigString() );
|
||||||
|
|
|
@ -422,7 +422,7 @@ void PCB_EDIT_FRAME::KiwayMailIn( KIWAY_EXPRESS& mail )
|
||||||
{
|
{
|
||||||
importFormat = std::stoi( payload.substr( 0, split ) );
|
importFormat = std::stoi( payload.substr( 0, split ) );
|
||||||
}
|
}
|
||||||
catch( std::invalid_argument& e )
|
catch( std::invalid_argument& )
|
||||||
{
|
{
|
||||||
wxFAIL;
|
wxFAIL;
|
||||||
importFormat = -1;
|
importFormat = -1;
|
||||||
|
|
|
@ -2017,7 +2017,7 @@ MODULE* PCB_IO::doLoadFootprint( const wxString& aLibraryPath,
|
||||||
{
|
{
|
||||||
validateCache( aLibraryPath, checkModified );
|
validateCache( aLibraryPath, checkModified );
|
||||||
}
|
}
|
||||||
catch( const IO_ERROR& ioe )
|
catch( const IO_ERROR& )
|
||||||
{
|
{
|
||||||
// do nothing with the error
|
// do nothing with the error
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue