1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-16 16:47:41 +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
// into one big block along with the split block,
// then resplit it all
unsigned int i;
BlockArray *newBlock = new BlockArray();
newBlock->Alloc(numBlocks + srcNumBlocks + 2);
int newNumBlocks = 0;
for (i = 0; i < b; i++) {
for (int i = 0; i < b; i++) {
newBlock->Add(mBlock->Item(i));
newNumBlocks++;
}
@ -568,6 +566,7 @@ bool Sequence::Paste(sampleCount s, const Sequence *src)
sampleCount splitLen = mBlock->Item(b)->f->GetLength();
int splitPoint = s - splitBlock->start;
unsigned int i;
if (srcNumBlocks <= 4) {
sampleCount sum = splitLen + addedLen;

View File

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

View File

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