Fix various warnings (#436)

* Fix Wreorder warnings

* Fix various unused variable/parameter warnings

* Fix Wparentheses warnings

* Fix Wignored-qualifiers warning

* Fix uninitialized variable warnings

* Fix Wshadow warnings

* Fix Wsign-compare warnings

* Fix miscellaneous warnings
This commit is contained in:
Tasos Sahanidis
2020-11-26 11:05:40 +02:00
committed by GitHub
parent f0f59d951a
commit fd1d235a05
21 changed files with 158 additions and 114 deletions

View File

@ -154,7 +154,7 @@ void projectM::default_key_handler( projectMEvent event, projectMKeycode keycode
if (isTextInputActive()) break; // don't handle this key if search menu is up.
if (renderer->showmenu) {
int downPreset = m_presetPos->lastIndex() + (renderer->textMenuPageSize / 2.0f); // jump down by page size / 2
if (downPreset >= (m_presetLoader->size() - 1)) // handle upper boundary
if (static_cast<std::size_t>(downPreset) >= (m_presetLoader->size() - 1)) // handle upper boundary
downPreset = 0;
selectPreset(downPreset); // jump down menu half a page.
}