Clean up build warnings (#4169)
* [build][OSX] Fix clang warnings. * [build][OSX] A few more warnings taken care of. * [build] Fixed yet more build warnings across all platforms. * [build] Fix final warning due to bad CMake flag. * [build] Remove unused variables as requested, fix indent. * Fix output display limit type for 8-bit targets.
This commit is contained in:
committed by
Bertrand Songis
parent
1666fd7355
commit
1eead1504c
@@ -143,7 +143,7 @@ void menuModelLimits(event_t event)
|
||||
lcdDrawChar(LIMITS_DIRECTION_POS, y, swVal);
|
||||
#endif
|
||||
|
||||
int8_t limit = (g_model.extendedLimits ? LIMIT_EXT_MAX : 100);
|
||||
limit_min_max_t limit = (g_model.extendedLimits ? LIMIT_EXT_MAX : 100);
|
||||
|
||||
putsChn(0, y, k+1, IS_LINE_SELECTED(sub, k) ? INVERS : 0);
|
||||
|
||||
|
||||
@@ -410,15 +410,6 @@ void displaySwitch(coord_t x, coord_t y, int width, unsigned int index)
|
||||
}
|
||||
}
|
||||
|
||||
const MenuItem MAIN_MENU[] = {
|
||||
{ "RADIO SETTINGS", menuRadioSetup },
|
||||
{ "MODEL SELECT", menuModelSelect },
|
||||
{ "MODEL SETTINGS", menuModelSetup },
|
||||
{ "CHECKLIST", menuModelNotes },
|
||||
{ "SD MANAGER", menuRadioSdManager },
|
||||
{ "VERSION", menuRadioVersion }
|
||||
};
|
||||
|
||||
bool isMenuAvailable(int index)
|
||||
{
|
||||
if (index == 4) {
|
||||
|
||||
@@ -48,4 +48,4 @@ swsrc_t checkIncDecMovedSwitch(swsrc_t val)
|
||||
}
|
||||
return val;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -278,16 +278,16 @@ bool isSwitchAvailable(int swtch, SwitchContext context)
|
||||
bool negative = false;
|
||||
|
||||
if (swtch < 0) {
|
||||
negative = true;
|
||||
if (swtch == -SWSRC_ON || swtch == -SWSRC_ONE) {
|
||||
return false;
|
||||
}
|
||||
negative = true;
|
||||
swtch = -swtch;
|
||||
}
|
||||
|
||||
#if defined(PCBSKY9X)
|
||||
if (swtch >= SWSRC_FIRST_SWITCH && swtch <= SWSRC_LAST_SWITCH) {
|
||||
negative = negative;
|
||||
(void)negative;
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user