mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
ppc: Move noreturn attribute
Otherwise GCC 4.2.4 complains that panic() marked noreturn does return. Signed-off-by: Andreas Färber <andreas.faerber@web.de> Signed-off-by: Alexander Graf <agraf@suse.de> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@914 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
committed by
Alexander Graf
parent
380f978e45
commit
dd6027703d
@@ -17,7 +17,7 @@
|
||||
|
||||
/* misc.c */
|
||||
extern void fatal_error( const char *str );
|
||||
extern void exit( int status );
|
||||
extern void exit( int status ) __attribute__ ((noreturn));
|
||||
|
||||
/* start.S */
|
||||
extern void flush_icache_range( char *start, char *stop );
|
||||
|
||||
@@ -35,7 +35,7 @@ void
|
||||
exit( int status __attribute__ ((unused)))
|
||||
{
|
||||
for (;;);
|
||||
} __attribute__ ((noreturn))
|
||||
}
|
||||
|
||||
void
|
||||
fatal_error( const char *err )
|
||||
|
||||
Reference in New Issue
Block a user