1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 16:48:44 +02:00

fixed "unused variable" warnings

This commit is contained in:
andheh 2018-02-26 23:09:14 +01:00 committed by James Crook
parent 76bad19117
commit ed83ec73b3

View File

@ -155,6 +155,7 @@ bool AudacityCommand::GetAutomationParameters(wxString & parms)
S.mpEap = &eap; S.mpEap = &eap;
bool bResult = DefineParams( S ); bool bResult = DefineParams( S );
wxASSERT_MSG( bResult, "You did not define DefineParameters() for this command" ); wxASSERT_MSG( bResult, "You did not define DefineParameters() for this command" );
static_cast<void>(bResult); // fix unused variable warning in release mode
return eap.GetParameters(parms); return eap.GetParameters(parms);
} }
@ -169,6 +170,7 @@ bool AudacityCommand::SetAutomationParameters(const wxString & parms)
S.SetForWriting( &eap ); S.SetForWriting( &eap );
bool bResult = DefineParams( S ); bool bResult = DefineParams( S );
wxASSERT_MSG( bResult, "You did not define DefineParameters() for this command" ); wxASSERT_MSG( bResult, "You did not define DefineParameters() for this command" );
static_cast<void>(bResult); // fix unused variable warning in release mode
if (!S.bOK) if (!S.bOK)
{ {
AudacityCommand::MessageBox( AudacityCommand::MessageBox(