Mercurial > hg > octave-jordi > gnulib-hg
changeset 15400:786020647d93
obstack: use _Noreturn
* lib/obstack.c (__attribute__): Remove macro.
(print_and_abort): Use _Noreturn.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 12 Jul 2011 01:06:42 -0700 |
parents | 75580bffd82c |
children | 14b27b921897 |
files | ChangeLog lib/obstack.c |
diffstat | 2 files changed, 5 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-07-12 Paul Eggert <eggert@cs.ucla.edu> + obstack: use _Noreturn + * lib/obstack.c (__attribute__): Remove macro. + (print_and_abort): Use _Noreturn. + c-stack: use _Noreturn * lib/c-stack.c (die, overflow_handler, segv_handler): Use _Noreturn rather than __attribute__((noreturn)).
--- a/lib/obstack.c +++ b/lib/obstack.c @@ -401,15 +401,7 @@ # include <libio/iolibio.h> # endif -# ifndef __attribute__ -/* This feature is available in gcc versions 2.5 and later. */ -# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) -# define __attribute__(Spec) /* empty */ -# endif -# endif - -static void -__attribute__ ((noreturn)) +static _Noreturn void print_and_abort (void) { /* Don't change any of these strings. Yes, it would be possible to add