Fix a few unused variable warnings on msvc
This commit is contained in:
parent
7155d1af29
commit
3e11506fa2
|
@ -602,7 +602,7 @@ TYPE SIM_MODEL::InferTypeFromRefAndValue( const wxString& aRef, const wxString&
|
|||
}
|
||||
}
|
||||
}
|
||||
catch( const tao::pegtl::parse_error& e )
|
||||
catch( const tao::pegtl::parse_error& )
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@ void SIM_MODEL_IDEAL::inferredReadDataFields( unsigned aSymbolPinCount, const st
|
|||
// The grammar and selector must guarantee having at least one child.
|
||||
SetParamValue( 0, root->children[0]->string() );
|
||||
}
|
||||
catch( const tao::pegtl::parse_error& e )
|
||||
catch( const tao::pegtl::parse_error& )
|
||||
{
|
||||
THROW_IO_ERROR( wxString::Format( _( "Failed to infer model from Value '%s'" ),
|
||||
GetFieldValue( aFields, VALUE_FIELD ) ) );
|
||||
|
|
|
@ -123,7 +123,7 @@ wxString SIM_MODEL_SOURCE::GenerateSpiceItemLine( const wxString& aRefName,
|
|||
SIM_MODEL_SOURCE_PARSER::pwlValuesSelector>
|
||||
( in );
|
||||
}
|
||||
catch( const tao::pegtl::parse_error& e )
|
||||
catch( const tao::pegtl::parse_error& )
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -134,7 +134,7 @@ bool SIM_VALUE_GRAMMAR::IsValid( const wxString& aString,
|
|||
{
|
||||
CALL_INSTANCE( aValueType, aNotation, doIsValid, in );
|
||||
}
|
||||
catch( const tao::pegtl::parse_error& e )
|
||||
catch( const tao::pegtl::parse_error& )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -200,7 +200,7 @@ SIM_VALUE_PARSER::PARSE_RESULT SIM_VALUE_PARSER::Parse( const wxString& aString,
|
|||
{
|
||||
CALL_INSTANCE( aValueType, aNotation, root = doParse, in );
|
||||
}
|
||||
catch( tao::pegtl::parse_error& e )
|
||||
catch( tao::pegtl::parse_error& )
|
||||
{
|
||||
result.isOk = false;
|
||||
return result;
|
||||
|
@ -484,7 +484,7 @@ bool SIM_VALUE_INST<double>::FromString( const wxString& aString, NOTATION aNota
|
|||
{
|
||||
m_value = std::stod( parseResult.significand ) * std::pow( 10, exponent );
|
||||
}
|
||||
catch( const std::invalid_argument& e )
|
||||
catch( const std::invalid_argument& )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue