diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2010-08-12 13:38:25 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2010-08-12 13:38:25 +0000 |
| commit | 0e2286f226c8ce66adb846995eb1bf0b4d92a649 (patch) | |
| tree | ae47cfb8e2440b0b220e57e4c894390b6c1efd7a /firmware/scroll_engine.c | |
| parent | 70ebe46d74dbb10160a878cdb120c9b3e7a8e30c (diff) | |
| download | rockbox-0e2286f226c8ce66adb846995eb1bf0b4d92a649.zip rockbox-0e2286f226c8ce66adb846995eb1bf0b4d92a649.tar.gz rockbox-0e2286f226c8ce66adb846995eb1bf0b4d92a649.tar.bz2 rockbox-0e2286f226c8ce66adb846995eb1bf0b4d92a649.tar.xz | |
Introduce NORETURN_ATTR wrapper for __attribute__((noreturn)), using this and a bit further cleanup in main gets rid of a warning when compiling for android.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27788 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/scroll_engine.c')
| -rw-r--r-- | firmware/scroll_engine.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/scroll_engine.c b/firmware/scroll_engine.c index fb1628a..70bbcbe 100644 --- a/firmware/scroll_engine.c +++ b/firmware/scroll_engine.c @@ -23,6 +23,7 @@ * ****************************************************************************/ #include "config.h" +#include "gcc_extensions.h" #include "cpu.h" #include "kernel.h" #include "thread.h" @@ -257,7 +258,7 @@ static bool scroll_process_message(int delay) } #endif /* HAVE_REMOTE_LCD */ -static void scroll_thread(void) __attribute__((noreturn)); +static void scroll_thread(void) NORETURN_ATTR; #ifdef HAVE_REMOTE_LCD static void scroll_thread(void) |