From 0e2286f226c8ce66adb846995eb1bf0b4d92a649 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 12 Aug 2010 13:38:25 +0000 Subject: 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 --- firmware/export/thread.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'firmware/export') 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 @@ #include #include #include +#include "gcc_extensions.h" /* Priority scheduling (when enabled with HAVE_PRIORITY_SCHEDULING) works * by giving high priority threads more CPU time than lower priority threads @@ -385,7 +386,7 @@ void thread_thaw(unsigned int thread_id); /* Wait for a thread to exit */ void thread_wait(unsigned int thread_id); /* Exit the current thread */ -void thread_exit(void) __attribute__((noreturn)); +void thread_exit(void) NORETURN_ATTR; #if defined(DEBUG) || defined(ROCKBOX_HAS_LOGF) #define ALLOW_REMOVE_THREAD /* Remove a thread from the scheduler */ -- cgit v1.2.3