bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 08/19] exclude-tests: use _Noreturn


From: Paul Eggert
Subject: [PATCH 08/19] exclude-tests: use _Noreturn
Date: Sun, 10 Jul 2011 22:23:40 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10

* tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Remove.
(ARGMATCH_DIE_DECL): Use _Noreturn instead.
---
 ChangeLog            |    5 +++--
 tests/test-exclude.c |    8 +-------
 2 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 8b5d79d..b1fb51b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,7 +1,8 @@
 2011-07-10  Paul Eggert  <address@hidden>
 
-       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
diff --git a/tests/test-exclude.c b/tests/test-exclude.c
index 8b1164a..9c7997d 100644
--- a/tests/test-exclude.c
+++ b/tests/test-exclude.c
@@ -64,13 +64,7 @@ ARGMATCH_VERIFY (exclude_keywords, exclude_flags);
    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
-- 
1.7.4.4



reply via email to

[Prev in Thread] Current Thread [Next in Thread]