summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2009-11-03 12:20:54 +0000
committerRafaël Carré <rafael.carre@gmail.com>2009-11-03 12:20:54 +0000
commitbb9808b8afe1e95b0d7734840e64a91a0da3fe9b (patch)
tree8ee51ee9ae284f5dc3f87ac7348083fd3614d5f0 /apps/main.c
parent9b46960baf2e19290f0761020609f78b82457263 (diff)
downloadrockbox-bb9808b8afe1e95b0d7734840e64a91a0da3fe9b.zip
rockbox-bb9808b8afe1e95b0d7734840e64a91a0da3fe9b.tar.gz
rockbox-bb9808b8afe1e95b0d7734840e64a91a0da3fe9b.tar.bz2
rockbox-bb9808b8afe1e95b0d7734840e64a91a0da3fe9b.tar.xz
root_menu() can't return, tell gcc about it
Since it can't return, app_main() can't either, tell gcc about it. Remove dead archos code (present if root_menu() would return erroneously), and rename app_main() to main() on target git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23494 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/apps/main.c b/apps/main.c
index 677eeb5..1eed068 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -127,7 +127,8 @@ static void init(void);
#ifdef SIMULATOR
void app_main(void)
#else
-static void app_main(void)
+int main(void) __attribute__((noreturn));
+int main(void)
#endif
{
int i;
@@ -640,17 +641,5 @@ void cop_main(void)
}
#endif /* CPU_PP */
-int main(void)
-{
- app_main();
-
- while(1) {
-#if (CONFIG_LED == LED_REAL)
- led(true); sleep(HZ/10);
- led(false); sleep(HZ/10);
-#endif
- }
- return 0;
-}
#endif