diff --git a/src/AudioIO.cpp b/src/AudioIO.cpp index 26e13eec1..0d798a7cf 100644 --- a/src/AudioIO.cpp +++ b/src/AudioIO.cpp @@ -515,7 +515,7 @@ struct AudioIO::ScrubQueue // There is work in the queue, but if Producer is outrunning us, discard some, // which may make a skip yet keep playback better synchronized with user gestures. const auto interval = (now - mLastTransformerTimeMillis).ToDouble() / 1000.0; - const Entry &previous = mEntries[(mMiddleIdx + Size - 1) % Size]; + //const Entry &previous = mEntries[(mMiddleIdx + Size - 1) % Size]; const auto deficit = static_cast(interval * mRate) - // Samples needed in the last time interval mCredit; // Samples done in the last time interval diff --git a/src/Dependencies.cpp b/src/Dependencies.cpp index a11850009..53d79a533 100644 --- a/src/Dependencies.cpp +++ b/src/Dependencies.cpp @@ -84,7 +84,7 @@ static void GetAllSeqBlocks(AudacityProject *project, static void ReplaceBlockFiles(AudacityProject *project, ReplacedBlockFileHash &hash) { - const auto &dirManager = project->GetDirManager(); + //const auto &dirManager = project->GetDirManager(); BlockPtrArray blocks; GetAllSeqBlocks(project, &blocks); diff --git a/src/Snap.cpp b/src/Snap.cpp index ecfd2625f..94bf68b93 100644 --- a/src/Snap.cpp +++ b/src/Snap.cpp @@ -289,7 +289,10 @@ bool SnapManager::SnapToPoints(Track *currentTrack, return true; } - size_t indexInThisTrack = -1; + // indexInThisTrack is ONLY used if count > 0 + // and is initialised then, so we can 'initialise' it + // to anything to keep compiler quiet. + size_t indexInThisTrack = left; size_t countInThisTrack = 0; for (i = left; i <= right; ++i) { diff --git a/src/effects/Paulstretch.cpp b/src/effects/Paulstretch.cpp index df6abae81..006a0715e 100644 --- a/src/effects/Paulstretch.cpp +++ b/src/effects/Paulstretch.cpp @@ -399,7 +399,7 @@ bool EffectPaulstretch::ProcessOne(WaveTrack *track,double t0,double t1,int coun /*************************************************************/ -PaulStretch::PaulStretch(float rap_, size_t in_bufsize_, float samplerate_) +PaulStretch::PaulStretch(float rap_, size_t in_bufsize_, float /*samplerate_*/) : samplerate { samplerate } , rap { std::max(1.0f, rap_) } , in_bufsize { in_bufsize_ } diff --git a/src/toolbars/ToolBar.cpp b/src/toolbars/ToolBar.cpp index 1787260a5..b1a80af79 100644 --- a/src/toolbars/ToolBar.cpp +++ b/src/toolbars/ToolBar.cpp @@ -186,7 +186,7 @@ void ToolBarResizer::OnLeftUp( wxMouseEvent & event ) } } -void ToolBarResizer::OnEnter( wxMouseEvent & event ) +void ToolBarResizer::OnEnter( wxMouseEvent & /*event*/ ) { // Bug 1201: On Mac, unsetting and re-setting the tooltip may be needed // to make it pop up when we want it. @@ -197,7 +197,7 @@ void ToolBarResizer::OnEnter( wxMouseEvent & event ) mOrigFocus = FindFocus(); } -void ToolBarResizer::OnLeave( wxMouseEvent & event ) +void ToolBarResizer::OnLeave( wxMouseEvent & /*event*/ ) { if (!GetCapture()) mOrigFocus = nullptr; diff --git a/src/widgets/Meter.cpp b/src/widgets/Meter.cpp index 2e80ea842..e9f5d6648 100644 --- a/src/widgets/Meter.cpp +++ b/src/widgets/Meter.cpp @@ -868,10 +868,12 @@ static float floatMax(float a, float b) return a>b? a: b; } +/* Unused as yet. static int intmin(int a, int b) { return a