mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
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:
parent
70ebe46d74
commit
0e2286f226
19 changed files with 71 additions and 35 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include <stdio.h>
|
||||
#include "lcd.h"
|
||||
#include "font.h"
|
||||
#include "gcc_extensions.h"
|
||||
|
||||
static const char* const uiename[] = {
|
||||
"Undefined instruction",
|
||||
|
|
@ -34,7 +35,7 @@ static const char* const uiename[] = {
|
|||
/* Unexpected Interrupt or Exception handler. Currently only deals with
|
||||
exceptions, but will deal with interrupts later.
|
||||
*/
|
||||
void __attribute__((noreturn)) UIE(unsigned int pc, unsigned int num)
|
||||
void NORETURN_ATTR UIE(unsigned int pc, unsigned int num)
|
||||
{
|
||||
#if LCD_DEPTH > 1
|
||||
lcd_set_backdrop(NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue