1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-17 00:57:40 +02:00

Fix some compiler warnings.

This commit is contained in:
v.audacity 2013-12-13 01:24:47 +00:00
parent 568ceeb47f
commit fc6e4a4cba
3 changed files with 5 additions and 7 deletions

View File

@ -553,13 +553,11 @@ bool Sequence::Paste(sampleCount s, const Sequence *src)
// it's simplest to just lump all the data together // it's simplest to just lump all the data together
// into one big block along with the split block, // into one big block along with the split block,
// then resplit it all // then resplit it all
unsigned int i;
BlockArray *newBlock = new BlockArray(); BlockArray *newBlock = new BlockArray();
newBlock->Alloc(numBlocks + srcNumBlocks + 2); newBlock->Alloc(numBlocks + srcNumBlocks + 2);
int newNumBlocks = 0; int newNumBlocks = 0;
for (i = 0; i < b; i++) { for (int i = 0; i < b; i++) {
newBlock->Add(mBlock->Item(i)); newBlock->Add(mBlock->Item(i));
newNumBlocks++; newNumBlocks++;
} }
@ -568,6 +566,7 @@ bool Sequence::Paste(sampleCount s, const Sequence *src)
sampleCount splitLen = mBlock->Item(b)->f->GetLength(); sampleCount splitLen = mBlock->Item(b)->f->GetLength();
int splitPoint = s - splitBlock->start; int splitPoint = s - splitBlock->start;
unsigned int i;
if (srcNumBlocks <= 4) { if (srcNumBlocks <= 4) {
sampleCount sum = splitLen + addedLen; sampleCount sum = splitLen + addedLen;

View File

@ -803,9 +803,9 @@ LV2EffectDialog::LV2EffectDialog(LV2Effect *effect,
const LilvPlugin *data, const LilvPlugin *data,
int sampleRate, int sampleRate,
double length, double length,
double noteLength, double WXUNUSED(noteLength),
unsigned char noteVelocity, unsigned char WXUNUSED(noteVelocity),
unsigned char noteKey) unsigned char WXUNUSED(noteKey))
: wxDialog(parent, wxID_ANY, : wxDialog(parent, wxID_ANY,
mEffect->GetString(lilv_plugin_get_name(data)), mEffect->GetString(lilv_plugin_get_name(data)),
wxDefaultPosition, wxSize(500, -1), wxDefaultPosition, wxSize(500, -1),

View File

@ -1762,7 +1762,6 @@ KeyView::GetValue(int line)
return wxEmptyString; return wxEmptyString;
} }
int index = LineToIndex(line); int index = LineToIndex(line);
KeyNode *node = &mNodes[index];
// Get the label and key values // Get the label and key values
wxString value; wxString value;