Fix a few unused variable warnings on msvc

This commit is contained in:
Roberto Fernandez Bautista 2022-08-15 20:45:54 +01:00
parent 7155d1af29
commit 3e11506fa2
4 changed files with 17 additions and 17 deletions

View File

@ -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& )
{
}

View File

@ -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 ) ) );

View File

@ -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;
}

View File

@ -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;
}