Fix compiler warnings

This commit is contained in:
Maschell 2022-05-13 16:17:20 +02:00
parent 70eebb31b0
commit bf7db1c4eb
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ bool ElfUtils::doRelocation(std::vector<std::shared_ptr<RelocationData>> &relocD
auto err = OSDynLoad_IsModuleLoaded(rplName.c_str(), &rplHandle);
if (err != OS_DYNLOAD_OK || rplHandle == 0) {
// only acquire if not already loaded.
auto res = OSDynLoad_Acquire(rplName.c_str(), &rplHandle);
OSDynLoad_Acquire(rplName.c_str(), &rplHandle);
}
uint32_t functionAddress = 0;

View File

@ -309,11 +309,11 @@ std::string EnvironmentSelectionScreen(const std::map<std::string, std::string>
if (i == selected) {
DrawUtils::drawRect(16, index, SCREEN_WIDTH - 16 * 2, 44, 4, COLOR_BORDER_HIGHLIGHTED);
} else {
DrawUtils::drawRect(16, index, SCREEN_WIDTH - 16 * 2, 44, 2, (i == autoBoot) ? COLOR_AUTOBOOT : COLOR_BORDER);
DrawUtils::drawRect(16, index, SCREEN_WIDTH - 16 * 2, 44, 2, ((int32_t) i == autoBoot) ? COLOR_AUTOBOOT : COLOR_BORDER);
}
DrawUtils::setFontSize(24);
DrawUtils::setFontColor((i == autoBoot) ? COLOR_AUTOBOOT : COLOR_TEXT);
DrawUtils::setFontColor(((int32_t) i == autoBoot) ? COLOR_AUTOBOOT : COLOR_TEXT);
DrawUtils::print(16 * 2, index + 8 + 24, key.c_str());
index += 42 + 8;
i++;
@ -377,7 +377,7 @@ std::string EnvironmentSelectionScreen(const std::map<std::string, std::string>
}
}
int i = 0;
uint32_t i = 0;
for (auto const &[key, val] : payloads) {
if (i == selected) {
return val;