Mercurial > hg > octave-jordi > gnulib-hg
diff lib/obstack.c @ 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 | 97fc9a21a8fb |
children | 5168b3ab1d02 |
line wrap: on
line diff
--- 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