diff --git a/src/LabelTrack.cpp b/src/LabelTrack.cpp index 399ed87d1..b43cadb51 100644 --- a/src/LabelTrack.cpp +++ b/src/LabelTrack.cpp @@ -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(r);//compiler food. + static_cast(zoomInfo);//compiler food. if (evt.ButtonDown()) { diff --git a/src/TrackPanel.cpp b/src/TrackPanel.cpp index 8c1d70c75..05f87122e 100644 --- a/src/TrackPanel.cpp +++ b/src/TrackPanel.cpp @@ -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(bHasMuteSolo); + static_cast(vrul); // fill in label wxRect fill = rect; diff --git a/src/commands/ScreenshotCommand.cpp b/src/commands/ScreenshotCommand.cpp index 5eec22a49..f500ee719 100644 --- a/src/commands/ScreenshotCommand.cpp +++ b/src/commands/ScreenshotCommand.cpp @@ -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(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 ) { diff --git a/src/effects/LoadEffects.cpp b/src/effects/LoadEffects.cpp index e6f81a039..daa612420 100644 --- a/src/effects/LoadEffects.cpp +++ b/src/effects/LoadEffects.cpp @@ -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(bFast); return mNames.Index(path) != wxNOT_FOUND; } diff --git a/src/effects/nyquist/LoadNyquist.cpp b/src/effects/nyquist/LoadNyquist.cpp index b2a218e0c..f257f7216 100644 --- a/src/effects/nyquist/LoadNyquist.cpp +++ b/src/effects/nyquist/LoadNyquist.cpp @@ -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(bFast); if((path == NYQUIST_PROMPT_ID) || (path == NYQUIST_TOOLS_PROMPT_ID)) return true;