1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 04:30:10 +00:00

Marked abort() and longjmp() with __attribute__((noreturn)).

git-svn-id: svn://svn.cc65.org/cc65/trunk@4374 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2009-10-19 09:29:09 +00:00
parent a5a9700d19
commit 918171231c
2 changed files with 7 additions and 7 deletions

View File

@ -6,10 +6,10 @@
/* */ /* */
/* */ /* */
/* */ /* */
/* (C) 1998-2000 Ullrich von Bassewitz */ /* (C) 1998-2009, Ullrich von Bassewitz */
/* Wacholderweg 14 */ /* Roemerstrasse 52 */
/* D-70597 Stuttgart */ /* D-70794 Filderstadt */
/* EMail: uz@musoftware.de */ /* EMail: uz@cc65.org */
/* */ /* */
/* */ /* */
/* This software is provided 'as-is', without any expressed or implied */ /* 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); int __fastcall__ _setjmp (jmp_buf buf);
#define setjmp _setjmp /* ISO insists on a macro */ #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 #endif

View File

@ -100,7 +100,7 @@ void __fastcall__ srand (unsigned seed);
void _randomize (void); /* Non-standard */ void _randomize (void); /* Non-standard */
/* Other standard stuff */ /* Other standard stuff */
void abort (void); void abort (void) __attribute__ ((noreturn));
int __fastcall__ abs (int val); int __fastcall__ abs (int val);
long __fastcall__ labs (long val); long __fastcall__ labs (long val);
int __fastcall__ atoi (const char* s); int __fastcall__ atoi (const char* s);