Author: agraf Date: Sun Oct 17 14:15:44 2010 New Revision: 914 URL: http://tracker.coreboot.org/trac/openbios/changeset/914
Log: 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
Modified: trunk/openbios-devel/arch/ppc/qemu/kernel.h trunk/openbios-devel/arch/ppc/qemu/qemu.c
Modified: trunk/openbios-devel/arch/ppc/qemu/kernel.h ============================================================================== --- trunk/openbios-devel/arch/ppc/qemu/kernel.h Sun Oct 17 11:13:14 2010 (r913) +++ trunk/openbios-devel/arch/ppc/qemu/kernel.h Sun Oct 17 14:15:44 2010 (r914) @@ -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 );
Modified: trunk/openbios-devel/arch/ppc/qemu/qemu.c ============================================================================== --- trunk/openbios-devel/arch/ppc/qemu/qemu.c Sun Oct 17 11:13:14 2010 (r913) +++ trunk/openbios-devel/arch/ppc/qemu/qemu.c Sun Oct 17 14:15:44 2010 (r914) @@ -35,7 +35,7 @@ exit( int status __attribute__ ((unused))) { for (;;); -} __attribute__ ((noreturn)) +}
void fatal_error( const char *err )