forked from len0rd/rockbox
Fix menu warnings
change offending bool return to int warning: cast between incompatible function types from '_Bool (*)(void)' to 'int (*)(void)' [-Wcast-function-type] forgot to remove -- typedef int (*menu_function)(void); Change-Id: Ie4c8d3ddb0fb7843c4ec584203350d658d6bee3e
This commit is contained in:
parent
e6b23a8f04
commit
dd40c46d50
23 changed files with 62 additions and 58 deletions
|
@ -2708,14 +2708,14 @@ static const char* menu_get_name(int item, void * data,
|
|||
return menuitems[item].desc;
|
||||
}
|
||||
|
||||
bool debug_menu(void)
|
||||
int debug_menu(void)
|
||||
{
|
||||
struct simplelist_info info;
|
||||
|
||||
simplelist_info_init(&info, "Debug Menu", ARRAYLEN(menuitems), NULL);
|
||||
info.action_callback = menu_action_callback;
|
||||
info.get_name = menu_get_name;
|
||||
return simplelist_show_list(&info);
|
||||
return (simplelist_show_list(&info)) ? 1 : 0;
|
||||
}
|
||||
|
||||
bool run_debug_screen(char* screen)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue