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
This commit is contained in:
Thomas Martitz 2010-08-12 13:38:25 +00:00
parent 70ebe46d74
commit 0e2286f226
19 changed files with 71 additions and 35 deletions

View file

@ -20,6 +20,7 @@
****************************************************************************/
#include "config.h"
#include "gcc_extensions.h"
#include "jz4740.h"
#include "ata.h"
#include "ata_idle_notify.h"
@ -47,7 +48,7 @@ static const char sd_thread_name[] = "ata/sd";
static struct event_queue sd_queue;
static struct mutex sd_mtx;
static struct wakeup sd_wakeup;
static void sd_thread(void) __attribute__((noreturn));
static void sd_thread(void) NORETURN_ATTR;
static int use_4bit;
static int num_6;