(rgui.c) silence warning in C89_BUILD

Fixes:

    menu/drivers/rgui.c: In function ‘rgui_render’:
    menu/drivers/rgui.c:1690:10: warning: ISO C90 forbids mixed
    declarations and code [-Wdeclaration-after-statement]
              menu_entry_t entry;
              ^~~~~~~~~~~~
This commit is contained in:
Hugo Hromic 2019-02-24 12:10:18 +00:00
parent b5368c9423
commit 147bd5e051
1 changed files with 1 additions and 1 deletions

View File

@ -1669,6 +1669,7 @@ static void rgui_render(void *data, bool is_idle)
char message[255];
char entry_title_buf[255];
char type_str_buf[255];
menu_entry_t entry;
char *entry_path = NULL;
unsigned entry_spacing = 0;
size_t entry_title_max_len = 0;
@ -1687,7 +1688,6 @@ static void rgui_render(void *data, bool is_idle)
type_str_buf[0] = '\0';
/* Get current entry */
menu_entry_t entry;
menu_entry_init(&entry);
menu_entry_get(&entry, 0, (unsigned)i, NULL, true);