mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Add a few warning comments about the INIT_ATTR stuff.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25024 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2ac962aceb
commit
a62eced78a
2 changed files with 16 additions and 0 deletions
|
@ -127,6 +127,10 @@ static void init(void);
|
|||
#ifdef SIMULATOR
|
||||
void app_main(void)
|
||||
#else
|
||||
/* main(), and various functions called by main() and init() may be
|
||||
* be INIT_ATTR. These functions must not be called after the final call
|
||||
* to root_menu() at the end of main()
|
||||
* see definition of INIT_ATTR in config.h */
|
||||
int main(void) INIT_ATTR __attribute__((noreturn));
|
||||
int main(void)
|
||||
#endif
|
||||
|
@ -161,6 +165,8 @@ int main(void)
|
|||
#endif /* #ifdef AUTOROCK */
|
||||
|
||||
global_status.last_volume_change = 0;
|
||||
/* no calls INIT_ATTR functions after this point anymore!
|
||||
* see definition of INIT_ATTR in config.h */
|
||||
root_menu();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue