mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Fix some warnings.
This commit is contained in:
@@ -1872,7 +1872,7 @@ int AudioIO::StartStream(const WaveTrackConstArray &playbackTracks,
|
||||
mLostSamples = 0;
|
||||
mLostCaptureIntervals.clear();
|
||||
mDetectDropouts =
|
||||
gPrefs->Read( WarningDialogKey(wxT("DropoutDetected")), true );
|
||||
gPrefs->Read( WarningDialogKey(wxT("DropoutDetected")), (long)true );
|
||||
auto cleanup = finally ( [this] { ClearRecordingException(); } );
|
||||
|
||||
if( IsBusy() )
|
||||
|
@@ -73,7 +73,7 @@ public:
|
||||
virtual ~ShuttleParams() {}
|
||||
bool ExchangeWithMaster(const wxString & Name) override;
|
||||
bool ShouldSet();
|
||||
virtual ShuttleParams & Optional( bool & var ){ pOptionalFlag = NULL;return *this;};
|
||||
virtual ShuttleParams & Optional( bool & WXUNUSED(var) ){ pOptionalFlag = NULL;return *this;};
|
||||
virtual ShuttleParams & OptionalY( bool & var ){ return Optional( var );};
|
||||
virtual ShuttleParams & OptionalN( bool & var ){ return Optional( var );};
|
||||
virtual void Define( bool & var, const wxChar * key, const bool vdefault, const bool vmin=false, const bool vmax=false, const bool vscl=false );
|
||||
|
@@ -32,7 +32,7 @@ void BatchEvalCommandType::BuildSignature(CommandSignature &signature)
|
||||
signature.AddParameter(wxT("ChainName"), wxT(""), std::move(chainValidator));
|
||||
}
|
||||
|
||||
OldStyleCommandPointer BatchEvalCommandType::Create(std::unique_ptr<CommandOutputTargets> &&target)
|
||||
OldStyleCommandPointer BatchEvalCommandType::Create(std::unique_ptr<CommandOutputTargets> && WXUNUSED(target))
|
||||
{
|
||||
return std::make_shared<BatchEvalCommand>(*this);
|
||||
}
|
||||
|
@@ -129,7 +129,7 @@ ApplyAndSendResponse::ApplyAndSendResponse(const OldStyleCommandPointer &cmd, st
|
||||
}
|
||||
|
||||
|
||||
bool ApplyAndSendResponse::Apply(const CommandContext &context)
|
||||
bool ApplyAndSendResponse::Apply(const CommandContext &WXUNUSED(context))
|
||||
{
|
||||
wxLogMessage( "Context was passed in, but was ignored. ApplyAndSendResponse has its own one");
|
||||
return Apply();
|
||||
|
@@ -195,23 +195,23 @@ void BriefCommandMessageTarget::EndStruct(){
|
||||
if( mCounts.GetCount() <= 3 )
|
||||
Update( " " );
|
||||
}
|
||||
void BriefCommandMessageTarget::AddItem(const wxString &value, const wxString &name){
|
||||
void BriefCommandMessageTarget::AddItem(const wxString &value, const wxString &WXUNUSED(name)){
|
||||
if( mCounts.GetCount() <= 3 )
|
||||
Update( wxString::Format( "%s\"%s\"", (mCounts.Last()>0)?" ":"",Escaped(value)));
|
||||
mCounts.Last() += 1;
|
||||
}
|
||||
void BriefCommandMessageTarget::AddBool(const bool value, const wxString &name){
|
||||
void BriefCommandMessageTarget::AddBool(const bool value, const wxString &WXUNUSED(name)){
|
||||
if( mCounts.GetCount() <= 3 )
|
||||
Update( wxString::Format( "%s%s", (mCounts.Last()>0)?" ":"",value?"True":"False"));
|
||||
mCounts.Last() += 1;
|
||||
}
|
||||
void BriefCommandMessageTarget::AddItem(const double value, const wxString &name){
|
||||
void BriefCommandMessageTarget::AddItem(const double value, const wxString &WXUNUSED(name)){
|
||||
if( mCounts.GetCount() <= 3 )
|
||||
Update( wxString::Format( "%s%g", (mCounts.Last()>0)?" ":"", value));
|
||||
mCounts.Last() += 1;
|
||||
}
|
||||
|
||||
void BriefCommandMessageTarget::StartField(const wxString &name){
|
||||
void BriefCommandMessageTarget::StartField(const wxString &WXUNUSED(name)){
|
||||
mCounts.Last() += 1;
|
||||
mCounts.push_back( 0 );
|
||||
}
|
||||
|
Reference in New Issue
Block a user