mirror of
https://github.com/cookiengineer/audacity
synced 2025-04-30 23:59:41 +02:00
Getting rid of some warnings...mostly unused parms
This commit is contained in:
parent
f3f3844b25
commit
431166561e
@ -3553,7 +3553,7 @@ int audacityAudioCallback(const void *inputBuffer, void *outputBuffer,
|
||||
tempBufs[c] = (float *) alloca(framesPerBuffer * sizeof(float));
|
||||
}
|
||||
|
||||
bool selected;
|
||||
bool selected = false;
|
||||
int group = 0;
|
||||
int chanCnt = 0;
|
||||
float rate = 0.0;
|
||||
|
@ -97,7 +97,11 @@ void FileIO::SetCatalogInfo()
|
||||
return;
|
||||
}
|
||||
|
||||
#if defined(__WXMAC__)
|
||||
void FileIO::SetCatalogInfo(wxUint32 type)
|
||||
#else
|
||||
void FileIO::SetCatalogInfo(wxUint32 WXUNUSED(type))
|
||||
#endif
|
||||
{
|
||||
#ifdef __WXMAC__
|
||||
#if !wxCHECK_VERSION(3, 0, 0)
|
||||
|
@ -274,8 +274,11 @@ wxImage *CreateAquaBackground(int width, int height, int offset)
|
||||
return image;
|
||||
}
|
||||
|
||||
wxImage *CreateSysBackground(int width, int height, int offset,
|
||||
wxColour colour)
|
||||
#ifdef USE_AQUA_THEME
|
||||
wxImage *CreateSysBackground(int width, int height, int offset, wxColour colour)
|
||||
#else
|
||||
wxImage *CreateSysBackground(int width, int height, int WXUNUSED(offset), wxColour colour)
|
||||
#endif
|
||||
{
|
||||
#ifdef USE_AQUA_THEME
|
||||
return CreateAquaBackground(width, height, offset);
|
||||
|
@ -587,7 +587,7 @@ void ModuleManager::DeleteInstance(const PluginID & providerID,
|
||||
mDynModules[providerID]->DeleteInstance(instance);
|
||||
}
|
||||
|
||||
bool ModuleManager::IsProviderValid(const PluginID & providerID,
|
||||
bool ModuleManager::IsProviderValid(const PluginID & WXUNUSED(providerID),
|
||||
const wxString & path)
|
||||
{
|
||||
// Builtin modules do not have a path
|
||||
|
@ -437,7 +437,11 @@ wxAccStatus TrackPanelAx::GetState( int childId, long* state )
|
||||
|
||||
// Returns a localized string representing the value for the object
|
||||
// or child.
|
||||
#if defined(__WXMAC__)
|
||||
wxAccStatus TrackPanelAx::GetValue( int childId, wxString* strValue )
|
||||
#else
|
||||
wxAccStatus TrackPanelAx::GetValue( int WXUNUSED(childId), wxString* WXUNUSED(strValue) )
|
||||
#endif
|
||||
{
|
||||
#if defined(__WXMSW__)
|
||||
return wxACC_NOT_IMPLEMENTED;
|
||||
|
@ -622,7 +622,7 @@ void ControlToolBar::PlayPlayRegion(double t0, double t1,
|
||||
}
|
||||
}
|
||||
|
||||
void ControlToolBar::SetVUMeters(AudacityProject *p)
|
||||
void ControlToolBar::SetVUMeters(AudacityProject *WXUNUSED(p))
|
||||
{
|
||||
Meter *play, *record;
|
||||
MeterToolBars::GetMeters( &play, &record);
|
||||
|
@ -90,7 +90,7 @@ bool TimeEditor::EndEdit(int row, int col, wxGrid *grid)
|
||||
return changed;
|
||||
}
|
||||
|
||||
bool TimeEditor::EndEdit(int row, int col, const wxGrid *grid, const wxString &oldval, wxString *newval)
|
||||
bool TimeEditor::EndEdit(int WXUNUSED(row), int WXUNUSED(col), const wxGrid *WXUNUSED(grid), const wxString &WXUNUSED(oldval), wxString *newval)
|
||||
{
|
||||
double newtime = GetTimeCtrl()->GetValue();
|
||||
bool changed = newtime != mOld;
|
||||
@ -322,9 +322,9 @@ bool ChoiceEditor::EndEdit(int row, int col, wxGrid *grid)
|
||||
return changed;
|
||||
}
|
||||
|
||||
bool ChoiceEditor::EndEdit(int row, int col,
|
||||
const wxGrid* grid,
|
||||
const wxString &oldval, wxString *newval)
|
||||
bool ChoiceEditor::EndEdit(int WXUNUSED(row), int WXUNUSED(col),
|
||||
const wxGrid* WXUNUSED(grid),
|
||||
const wxString &WXUNUSED(oldval), wxString *newval)
|
||||
{
|
||||
int sel = Choice()->GetSelection();
|
||||
|
||||
@ -870,7 +870,11 @@ wxAccStatus GridAx::GetState(int childId, long *state)
|
||||
|
||||
// Returns a localized string representing the value for the object
|
||||
// or child.
|
||||
#if defined(__WXMAC__)
|
||||
wxAccStatus GridAx::GetValue(int childId, wxString *strValue)
|
||||
#else
|
||||
wxAccStatus GridAx::GetValue(int WXUNUSED(childId), wxString *strValue)
|
||||
#endif
|
||||
{
|
||||
strValue->Clear();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user