1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 17:11:20 +01:00

Fix C4189 and C4100 Warnings

C4189 is 'Local variable initialised but not used'
C4100 is 'Unreferenced parameter'

Fixed some other warnings, e.g. about empty if, too.
This commit is contained in:
James Crook
2018-10-10 19:09:10 +01:00
parent 66c861315f
commit 657159d542
30 changed files with 82 additions and 53 deletions

View File

@@ -313,7 +313,7 @@ wxAccStatus CheckListAx::GetSelections( wxVariant * WXUNUSED(selections) )
}
// Returns a state constant.
wxAccStatus CheckListAx::GetState( int childId, long *state )
wxAccStatus CheckListAx::GetState( int childId, long *pState )
{
int flag = wxACC_STATE_SYSTEM_FOCUSABLE;
@@ -347,7 +347,7 @@ wxAccStatus CheckListAx::GetState( int childId, long *state )
}
}
*state = flag;
*pState = flag;
return wxACC_OK;
}
@@ -1947,7 +1947,7 @@ void PluginManager::Load()
}
// Doing the deletion within the search loop risked skipping some items,
// hence the delayed delete.
for (int i = 0; i < groupsToDelete.Count(); i++) {
for (unsigned int i = 0; i < groupsToDelete.Count(); i++) {
registry.DeleteGroup(groupsToDelete[i]);
}
registry.SetPath("");