1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 07:59:27 +02:00

fixed more "statement has no effect" warnings

This commit is contained in:
andheh 2018-02-26 10:22:50 +01:00 committed by James Crook
parent 84016716f0
commit d72028de26
2 changed files with 3 additions and 3 deletions

View File

@ -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 ){ void GetInfoCommand::ExploreMenu( const CommandContext &context, wxMenu * pMenu, int Id, int depth ){
Id;//compiler food. static_cast<void>(Id);//compiler food.
if( !pMenu ) if( !pMenu )
return; return;
@ -572,7 +572,7 @@ void GetInfoCommand::ExploreTrackPanel( const CommandContext &context,
void GetInfoCommand::ExploreWindows( const CommandContext &context, void GetInfoCommand::ExploreWindows( const CommandContext &context,
wxPoint P, wxWindow * pWin, int Id, int depth ) wxPoint P, wxWindow * pWin, int Id, int depth )
{ {
Id;//Compiler food. static_cast<void>(Id);//Compiler food.
if( pWin->GetName() == "Track Panel" ) if( pWin->GetName() == "Track Panel" )
{ {

View File

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