From: Mike Frysinger Date: Thu, 14 Feb 2008 16:58:31 -0500 Subject: [U-Boot-Users] [PATCH] Mark board_init_[fr] as noreturn In-Reply-To: <20080214215515.87312242B6@gemini.denx.de> References: <20080214215515.87312242B6@gemini.denx.de> Message-ID: <200802141658.32184.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday 14 February 2008, Wolfgang Denk wrote: > In message <1201517161-23655-1-git-send-email-vapier@gentoo.org> you wrote: > > Signed-off-by: Mike Frysinger > > --- > > include/common.h | 4 ++-- > > 1 files changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/include/common.h b/include/common.h > > index 54083f1..bcb8bb9 100644 > > --- a/include/common.h > > +++ b/include/common.h > > @@ -203,8 +203,8 @@ void init_cmd_timeout(void); > > void reset_cmd_timeout(void); > > > > /* lib_$(ARCH)/board.c */ > > -void board_init_f (ulong); > > -void board_init_r (gd_t *, ulong); > > +void board_init_f (ulong) __attribute__ ((noreturn)); > > +void board_init_r (gd_t *, ulong) __attribute__ ((noreturn)); > > Well - now I get compile warnings (on PPC): > > board.c: In function 'board_init_f': > board.c:615: warning: 'noreturn' function does return > > How to fix? your relocate_code() function prototype is missing a noreturn attribute -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 827 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20080214/21a3cbc2/attachment.pgp