mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
|
@ -50,7 +50,7 @@ static void speak_time(int hours, int minutes, bool speak_hours, bool enqueue)
|
|||
}
|
||||
}
|
||||
|
||||
bool alarm_screen(void)
|
||||
int alarm_screen(void)
|
||||
{
|
||||
int h, m;
|
||||
bool done = false;
|
||||
|
@ -188,10 +188,10 @@ bool alarm_screen(void)
|
|||
if(default_event_handler(button) == SYS_USB_CONNECTED)
|
||||
{
|
||||
rtc_enable_alarm(false);
|
||||
return true;
|
||||
return 1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue