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 --- apps/recorder/pcm_record.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps/recorder') diff --git a/apps/recorder/pcm_record.c b/apps/recorder/pcm_record.c index 704d859e57..0221963b2b 100644 --- a/apps/recorder/pcm_record.c +++ b/apps/recorder/pcm_record.c @@ -18,6 +18,9 @@ * KIND, either express or implied. * ****************************************************************************/ + +#include "config.h" +#include "gcc_extensions.h" #include "pcm_record.h" #include "system.h" #include "kernel.h" @@ -1458,7 +1461,7 @@ static void pcmrec_resume(void) logf("pcmrec_resume done"); } /* pcmrec_resume */ -static void pcmrec_thread(void) __attribute__((noreturn)); +static void pcmrec_thread(void) NORETURN_ATTR; static void pcmrec_thread(void) { struct queue_event ev; -- cgit v1.2.3