Mercurial > hg > octave-nkf > gnulib-hg
changeset 15398:7a89429c129d
exclude_tests: use _Noreturn
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 12 Jul 2011 01:05:34 -0700 |
parents | 7d9ccb480220 |
children | 75580bffd82c |
files | ChangeLog tests/test-exclude.c |
diffstat | 2 files changed, 4 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,8 @@ 2011-07-12 Paul Eggert <eggert@cs.ucla.edu> - argmatch-tests: use _Noreturn - * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Remove. + argmatch-tests, exclude_tests: use _Noreturn + * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): + Remove. (ARGMATCH_DIE_DECL): Use _Noreturn instead. stdlib: use _Noreturn
--- a/tests/test-exclude.c +++ b/tests/test-exclude.c @@ -64,13 +64,7 @@ thus must link with a definition of that function. Provide it here. */ #ifdef ARGMATCH_DIE_DECL -# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 8) -# define _GL_ATTRIBUTE_NORETURN __attribute__ ((__noreturn__)) -# else -# define _GL_ATTRIBUTE_NORETURN /* empty */ -# endif - -ARGMATCH_DIE_DECL _GL_ATTRIBUTE_NORETURN; +_Noreturn ARGMATCH_DIE_DECL; ARGMATCH_DIE_DECL { exit (1); } #endif