Remove unused vars

This commit is contained in:
Marek Roszko 2022-09-18 08:42:42 -04:00
parent 1e1aedbe30
commit 63295cfb9e
8 changed files with 19 additions and 19 deletions

View File

@ -273,7 +273,7 @@ bool DATABASE_CONNECTION::getQuoteChar()
wxLogTrace( traceDatabase, wxT( "Quote char retrieved: %c" ), m_quoteChar );
}
catch( nanodbc::database_error& e )
catch( nanodbc::database_error& )
{
wxLogTrace( traceDatabase, wxT( "Exception while querying quote char: %s" ), m_lastError );
return false;

View File

@ -138,7 +138,6 @@ std::string EDA_UNIT_UTILS::FormatInternalUnits( const EDA_IU_SCALE& aIuScale, i
{
std::string buf;
double engUnits = aValue;
int len;
engUnits /= aIuScale.IU_PER_MM;

View File

@ -33,7 +33,7 @@ std::unique_ptr<NODE> MARKUP_PARSER::Parse()
auto root = parse_tree::parse<MARKUP::grammar, MARKUP::NODE, MARKUP::selector>( in );
return root;
}
catch ( tao::pegtl::parse_error& parseError )
catch ( tao::pegtl::parse_error& )
{
// couldn't parse text item
// TODO message to user?

View File

@ -26,6 +26,7 @@ class WX_GRID;
#include <wx/button.h>
#include <wx/sizer.h>
#include <wx/panel.h>
#include <wx/treebook.h>
#include <wx/simplebook.h>
///////////////////////////////////////////////////////////////////////////

View File

@ -208,7 +208,7 @@ void NETLIST_EXPORTER_SPICE::ReadDirectives( unsigned aNetlistOptions )
NETLIST_EXPORTER_SPICE_PARSER::control>
( in );
}
catch( const tao::pegtl::parse_error& e )
catch( const tao::pegtl::parse_error& )
{
continue;
}

View File

@ -547,7 +547,7 @@ bool SCH_FIELD::Matches( const EDA_SEARCH_DATA& aSearchData, void* aAuxData ) co
searchAndReplace = schSearchData.searchAndReplace;
replaceReferences = schSearchData.replaceReferences;
}
catch( const std::bad_cast& e )
catch( const std::bad_cast& )
{
}
@ -622,7 +622,7 @@ bool SCH_FIELD::Replace( const EDA_SEARCH_DATA& aSearchData, void* aAuxData )
const SCH_SEARCH_DATA& schSearchData = dynamic_cast<const SCH_SEARCH_DATA&>( aSearchData );
replaceReferences = schSearchData.replaceReferences;
}
catch( const std::bad_cast& e )
catch( const std::bad_cast& )
{
}

View File

@ -606,7 +606,7 @@ TYPE SIM_MODEL::InferTypeFromRefAndValue( const wxString& aRef, const wxString&
}
}
}
catch( const tao::pegtl::parse_error& e )
catch( const tao::pegtl::parse_error& )
{
}

View File

@ -469,7 +469,7 @@ int SCH_EDITOR_CONTROL::FindNext( const TOOL_EVENT& aEvent )
const SCH_SEARCH_DATA& schSearchData = dynamic_cast<const SCH_SEARCH_DATA&>( data );
searchAllSheets = !( schSearchData.searchCurrentSheetOnly );
}
catch( const std::bad_cast& e )
catch( const std::bad_cast& )
{
}
@ -624,7 +624,7 @@ int SCH_EDITOR_CONTROL::ReplaceAll( const TOOL_EVENT& aEvent )
const SCH_SEARCH_DATA& schSearchData = dynamic_cast<const SCH_SEARCH_DATA&>( data );
currentSheetOnly = schSearchData.searchCurrentSheetOnly;
}
catch( const std::bad_cast& e )
catch( const std::bad_cast& )
{
}