WARNINGS_AS_ERRORS enabled in commit tests for X7D
This commit is contained in:
@@ -137,7 +137,10 @@ void menuRadioSdManager(event_t _event)
|
||||
#endif
|
||||
case EVT_KEY_FIRST(KEY_ENTER):
|
||||
{
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wtype-limits"
|
||||
if (menuVerticalPosition >= HEADER_LINE) {
|
||||
#pragma GCC diagnostic pop
|
||||
vertpos_t index = menuVerticalPosition-HEADER_LINE-menuVerticalOffset;
|
||||
if (!reusableBuffer.sdmanager.lines[index][SD_SCREEN_FILE_LENGTH+1]) {
|
||||
f_chdir(reusableBuffer.sdmanager.lines[index]);
|
||||
@@ -155,7 +158,10 @@ void menuRadioSdManager(event_t _event)
|
||||
|
||||
case EVT_KEY_LONG(KEY_ENTER):
|
||||
killEvents(_event);
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wtype-limits"
|
||||
if (menuVerticalPosition < HEADER_LINE) {
|
||||
#pragma GCC diagnostic pop
|
||||
POPUP_MENU_ADD_ITEM(STR_SD_INFO);
|
||||
POPUP_MENU_ADD_ITEM(STR_SD_FORMAT);
|
||||
}
|
||||
|
||||
@@ -101,11 +101,11 @@ void menuChannelsView(event_t event)
|
||||
#endif
|
||||
|
||||
// Gauge
|
||||
#ifdef MIXERS_MONITOR
|
||||
uint16_t lim = mixersView ? 512*2*2 : (g_model.extendedLimits ? 640*2 : 512*2);
|
||||
#else
|
||||
uint16_t lim = g_model.extendedLimits ? 640*2 : 512*2;
|
||||
#endif
|
||||
// #ifdef MIXERS_MONITOR
|
||||
// uint16_t lim = mixersView ? 512*2*2 : (g_model.extendedLimits ? 640*2 : 512*2);
|
||||
// #else
|
||||
// uint16_t lim = g_model.extendedLimits ? 640*2 : 512*2;
|
||||
// #endif
|
||||
// TODO ? drawGauge(x+LCD_W/2-3-wbar-ofs, y, wbar, 6, val, lim);
|
||||
|
||||
ch++;
|
||||
|
||||
Reference in New Issue
Block a user