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 /apps/root_menu.h | |
parent | 70ebe46d74dbb10160a878cdb120c9b3e7a8e30c (diff) |
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 'apps/root_menu.h')
-rw-r--r-- | apps/root_menu.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/root_menu.h b/apps/root_menu.h index 9674a73f50..739ec8c4e9 100644 --- a/apps/root_menu.h +++ b/apps/root_menu.h @@ -18,11 +18,13 @@ * KIND, either express or implied. * ****************************************************************************/ -#include "config.h" #ifndef __ROOT_MENU_H__ #define __ROOT_MENU_H__ -void root_menu(void) __attribute__((noreturn)); +#include "config.h" +#include "gcc_extensions.h" + +void root_menu(void) NORETURN_ATTR; enum { /* from old menu api, but still required*/ |