From 918171231c0e4edf37aa042d681d5376f30c4599 Mon Sep 17 00:00:00 2001 From: uz Date: Mon, 19 Oct 2009 09:29:09 +0000 Subject: [PATCH] Marked abort() and longjmp() with __attribute__((noreturn)). git-svn-id: svn://svn.cc65.org/cc65/trunk@4374 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- include/setjmp.h | 12 ++++++------ include/stdlib.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/setjmp.h b/include/setjmp.h index 945312ab9..0befe8163 100644 --- a/include/setjmp.h +++ b/include/setjmp.h @@ -6,10 +6,10 @@ /* */ /* */ /* */ -/* (C) 1998-2000 Ullrich von Bassewitz */ -/* Wacholderweg 14 */ -/* D-70597 Stuttgart */ -/* EMail: uz@musoftware.de */ +/* (C) 1998-2009, Ullrich von Bassewitz */ +/* Roemerstrasse 52 */ +/* D-70794 Filderstadt */ +/* EMail: uz@cc65.org */ /* */ /* */ /* This software is provided 'as-is', without any expressed or implied */ @@ -44,11 +44,11 @@ typedef char jmp_buf [5]; int __fastcall__ _setjmp (jmp_buf buf); #define setjmp _setjmp /* ISO insists on a macro */ -void __fastcall__ longjmp (jmp_buf buf, int retval); +void __fastcall__ longjmp (jmp_buf buf, int retval) __attribute__((noreturn)); -/* End of stddef.h */ +/* End of setjmp.h */ #endif diff --git a/include/stdlib.h b/include/stdlib.h index e938e8a3a..6ca7bbe26 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -100,7 +100,7 @@ void __fastcall__ srand (unsigned seed); void _randomize (void); /* Non-standard */ /* Other standard stuff */ -void abort (void); +void abort (void) __attribute__ ((noreturn)); int __fastcall__ abs (int val); long __fastcall__ labs (long val); int __fastcall__ atoi (const char* s);