1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 08:09:32 +02:00

fixed "statement has no effect" warnings

This commit is contained in:
andheh 2018-02-15 13:11:45 +01:00 committed by James Crook
parent 3dd0ce0459
commit ade7854c1d
5 changed files with 10 additions and 9 deletions

View File

@ -1638,8 +1638,8 @@ void LabelTrack::HandleTextClick(const wxMouseEvent & evt,
const wxRect & r, const ZoomInfo &zoomInfo,
SelectedRegion *newSel)
{
r;//compiler food.
zoomInfo;//compiler food.
static_cast<void>(r);//compiler food.
static_cast<void>(zoomInfo);//compiler food.
if (evt.ButtonDown())
{

View File

@ -3200,8 +3200,8 @@ void TrackInfo::DrawBackground(wxDC * dc, const wxRect & rect, bool bSelected,
bool bHasMuteSolo, const int labelw, const int vrul) const
{
//compiler food.
bHasMuteSolo;
vrul;
static_cast<void>(bHasMuteSolo);
static_cast<void>(vrul);
// fill in label
wxRect fill = rect;

View File

@ -371,10 +371,11 @@ bool ScreenshotCommand::CaptureDock(
return Capture(context, mFileName, win, wxRect(x, y, width, height));
}
void ExploreMenu(
void ExploreMenu(
const CommandContext & context,
wxMenu * pMenu, int Id, int depth ){
Id;//compiler food.
static_cast<void>(Id);//compiler food.
if( !pMenu )
return;
@ -482,7 +483,7 @@ void ScreenshotCommand::CapturePreferences(
}
}
void ScreenshotCommand::CaptureEffects(
void ScreenshotCommand::CaptureEffects(
const CommandContext & context,
AudacityProject * pProject, const wxString &mFileName )
{

View File

@ -334,7 +334,7 @@ unsigned BuiltinEffectsModule::DiscoverPluginsAtPath(
bool BuiltinEffectsModule::IsPluginValid(const wxString & path, bool bFast)
{
// bFast is unused as checking in the list is fast.
bFast;
static_cast<void>(bFast);
return mNames.Index(path) != wxNOT_FOUND;
}

View File

@ -250,7 +250,7 @@ bool NyquistEffectsModule::IsPluginValid(const wxString & path, bool bFast)
{
// Ignores bFast parameter, since checking file exists is fast enough for
// the small number of Nyquist plug-ins that we have.
bFast;
static_cast<void>(bFast);
if((path == NYQUIST_PROMPT_ID) || (path == NYQUIST_TOOLS_PROMPT_ID))
return true;