0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 14:48:03 +03:00

removed a 1000 pragmas

This commit is contained in:
OneOfEleven
2023-10-28 23:11:57 +01:00
parent 37b766c2fc
commit 02ecffd210
13 changed files with 50 additions and 98 deletions

View File

@ -87,9 +87,6 @@ void UI_DisplayAircopy(void)
// **********************************
// lower TX/RX status text line
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough="
switch (g_aircopy_state)
{
case AIRCOPY_READY:
@ -132,8 +129,6 @@ void UI_DisplayAircopy(void)
break;
}
#pragma GCC diagnostic pop
// **********************************
ST7565_BlitFullScreen();

View File

@ -14,10 +14,6 @@
* limitations under the License.
*/
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough="
#pragma GCC diagnostic pop
#include <string.h>
#include <stdlib.h> // abs()
@ -681,8 +677,6 @@ void UI_DisplayMain(void)
if (g_eeprom.screen_channel[vfo_num] <= USER_CHANNEL_LAST)
{ // it's a channel
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough="
switch (g_eeprom.channel_display_mode)
{
@ -741,8 +735,6 @@ void UI_DisplayMain(void)
break;
}
#pragma GCC diagnostic pop
}
else
// if (IS_FREQ_CHANNEL(g_eeprom.screen_channel[vfo_num]))

View File

@ -555,9 +555,6 @@ void UI_DisplayMenu(void)
bool already_printed = false;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough="
switch (g_menu_cursor)
{
case MENU_SQL:
@ -1185,8 +1182,6 @@ void UI_DisplayMenu(void)
}
}
#pragma GCC diagnostic pop
if (!already_printed)
{ // we now do multi-line text in a single string

View File

@ -43,9 +43,6 @@ void UI_DisplaySearch(void)
// ***********************************
// frequency text line
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough="
switch (g_search_css_state)
{
default:
@ -56,6 +53,8 @@ void UI_DisplaySearch(void)
break;
}
// Fallthrough
case SEARCH_CSS_STATE_SCANNING:
case SEARCH_CSS_STATE_FOUND:
case SEARCH_CSS_STATE_FAILED:
@ -71,8 +70,6 @@ void UI_DisplaySearch(void)
break;
}
#pragma GCC diagnostic pop
UI_PrintString(String, 2, 0, 1, 8);
// ***********************************
@ -124,9 +121,6 @@ void UI_DisplaySearch(void)
memset(String, 0, sizeof(String));
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough="
switch (g_search_edit_state)
{
default:
@ -155,6 +149,8 @@ void UI_DisplaySearch(void)
break;
}
// Fallthrough
case SEARCH_CSS_STATE_FREQ_FAILED:
case SEARCH_CSS_STATE_REPEAT:
strcpy(String, "* repeat");
@ -181,8 +177,6 @@ void UI_DisplaySearch(void)
break;
}
#pragma GCC diagnostic pop
UI_PrintString(String, text_centered ? 0 : 2, text_centered ? 127 : 0, 5, 8);
// ***********************************