1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-26 00:03:52 +02:00

Fix warnings for unused variables and functions

This commit is contained in:
Paul Licameli
2016-02-26 14:41:17 -05:00
parent 9f6192a442
commit 60bcd7aea2
22 changed files with 44 additions and 8 deletions

View File

@@ -418,11 +418,13 @@ bool Sequence::Copy(sampleCount s0, sampleCount s1, Sequence **dest)
return false;
int numBlocks = mBlock.size();
int b0 = FindBlock(s0);
const int b1 = FindBlock(s1 - 1);
wxASSERT(b0 >= 0);
wxASSERT(b0 < numBlocks);
wxASSERT(b1 < numBlocks);
wxUnusedVar(numBlocks);
wxASSERT(b0 <= b1);
*dest = new Sequence(mDirManager, mSampleFormat);