mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-01 17:34:24 +01:00
fixed some warnings in debug mode (GCC/Linux)
This commit is contained in:
@@ -704,7 +704,7 @@ bool MacroCommands::ApplyEffectCommand(
|
||||
const wxString & command, const wxString & params,
|
||||
const CommandContext & Context)
|
||||
{
|
||||
(void*)&command;//compiler food.
|
||||
static_cast<void>(command);//compiler food.
|
||||
|
||||
//Possibly end processing here, if in batch-debug
|
||||
if( ReportAndSkip(friendlyCommand, params))
|
||||
|
||||
@@ -90,7 +90,7 @@ void ReverseSamples(samplePtr dst, sampleFormat format,
|
||||
samplePtr first = dst + start * size;
|
||||
samplePtr last = dst + (start + len - 1) * size;
|
||||
enum : size_t { fixedSize = SAMPLE_SIZE(floatSample) };
|
||||
wxASSERT(size <= fixedSize);
|
||||
wxASSERT(static_cast<size_t>(size) <= fixedSize);
|
||||
char temp[fixedSize];
|
||||
while (first < last) {
|
||||
memcpy(temp, first, size);
|
||||
|
||||
Reference in New Issue
Block a user