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/export/thread.h | |
parent | 70ebe46d74dbb10160a878cdb120c9b3e7a8e30c (diff) | |
download | rockbox-0e2286f226c8ce66adb846995eb1bf0b4d92a649.tar.gz rockbox-0e2286f226c8ce66adb846995eb1bf0b4d92a649.zip |
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/export/thread.h')
-rw-r--r-- | firmware/export/thread.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/firmware/export/thread.h b/firmware/export/thread.h index 2853c0b121..c778f2c074 100644 --- a/firmware/export/thread.h +++ b/firmware/export/thread.h | |||
@@ -25,6 +25,7 @@ | |||
25 | #include <inttypes.h> | 25 | #include <inttypes.h> |
26 | #include <stddef.h> | 26 | #include <stddef.h> |
27 | #include <stdbool.h> | 27 | #include <stdbool.h> |
28 | #include "gcc_extensions.h" | ||
28 | 29 | ||
29 | /* Priority scheduling (when enabled with HAVE_PRIORITY_SCHEDULING) works | 30 | /* Priority scheduling (when enabled with HAVE_PRIORITY_SCHEDULING) works |
30 | * by giving high priority threads more CPU time than lower priority threads | 31 | * by giving high priority threads more CPU time than lower priority threads |
@@ -385,7 +386,7 @@ void thread_thaw(unsigned int thread_id); | |||
385 | /* Wait for a thread to exit */ | 386 | /* Wait for a thread to exit */ |
386 | void thread_wait(unsigned int thread_id); | 387 | void thread_wait(unsigned int thread_id); |
387 | /* Exit the current thread */ | 388 | /* Exit the current thread */ |
388 | void thread_exit(void) __attribute__((noreturn)); | 389 | void thread_exit(void) NORETURN_ATTR; |
389 | #if defined(DEBUG) || defined(ROCKBOX_HAS_LOGF) | 390 | #if defined(DEBUG) || defined(ROCKBOX_HAS_LOGF) |
390 | #define ALLOW_REMOVE_THREAD | 391 | #define ALLOW_REMOVE_THREAD |
391 | /* Remove a thread from the scheduler */ | 392 | /* Remove a thread from the scheduler */ |