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 /bootloader/gigabeat-s.c | |
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 'bootloader/gigabeat-s.c')
-rw-r--r-- | bootloader/gigabeat-s.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bootloader/gigabeat-s.c b/bootloader/gigabeat-s.c index b6db9e633f..9c5ad93d1f 100644 --- a/bootloader/gigabeat-s.c +++ b/bootloader/gigabeat-s.c | |||
@@ -22,6 +22,7 @@ | |||
22 | #include "system.h" | 22 | #include "system.h" |
23 | #include <stdio.h> | 23 | #include <stdio.h> |
24 | #include "kernel.h" | 24 | #include "kernel.h" |
25 | #include "gcc_extensions.h" | ||
25 | #include "string.h" | 26 | #include "string.h" |
26 | #include "adc.h" | 27 | #include "adc.h" |
27 | #include "powermgmt.h" | 28 | #include "powermgmt.h" |
@@ -296,7 +297,7 @@ static void handle_untar(void) | |||
296 | } | 297 | } |
297 | 298 | ||
298 | /* Try to load the firmware and run it */ | 299 | /* Try to load the firmware and run it */ |
299 | static void __attribute__((noreturn)) handle_firmware_load(void) | 300 | static void NORETURN_ATTR handle_firmware_load(void) |
300 | { | 301 | { |
301 | int rc = load_firmware(load_buf, BOOTFILE, | 302 | int rc = load_firmware(load_buf, BOOTFILE, |
302 | load_buf_size); | 303 | load_buf_size); |