From d72028de267085003dd0f5504e509c4d0a6691d3 Mon Sep 17 00:00:00 2001 From: andheh <36114788+andheh@users.noreply.github.com> Date: Mon, 26 Feb 2018 10:22:50 +0100 Subject: [PATCH] fixed more "statement has no effect" warnings --- src/commands/GetInfoCommand.cpp | 4 ++-- src/commands/LoadCommands.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/GetInfoCommand.cpp b/src/commands/GetInfoCommand.cpp index 214184f77..19401616d 100644 --- a/src/commands/GetInfoCommand.cpp +++ b/src/commands/GetInfoCommand.cpp @@ -416,7 +416,7 @@ and may be recursive. 'Send' is the top level. *******************************************************************/ void GetInfoCommand::ExploreMenu( const CommandContext &context, wxMenu * pMenu, int Id, int depth ){ - Id;//compiler food. + static_cast(Id);//compiler food. if( !pMenu ) return; @@ -572,7 +572,7 @@ void GetInfoCommand::ExploreTrackPanel( const CommandContext &context, void GetInfoCommand::ExploreWindows( const CommandContext &context, wxPoint P, wxWindow * pWin, int Id, int depth ) { - Id;//Compiler food. + static_cast(Id);//Compiler food. if( pWin->GetName() == "Track Panel" ) { diff --git a/src/commands/LoadCommands.cpp b/src/commands/LoadCommands.cpp index 059001071..b5e487fdd 100644 --- a/src/commands/LoadCommands.cpp +++ b/src/commands/LoadCommands.cpp @@ -271,7 +271,7 @@ unsigned BuiltinCommandsModule::DiscoverPluginsAtPath( bool BuiltinCommandsModule::IsPluginValid(const wxString & path, bool bFast) { // bFast is unused as checking in the list is fast. - bFast; + static_cast(bFast); // avoid unused variable warning return mNames.Index(path) != wxNOT_FOUND; }