bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH] test-raise: use _Noreturn


From: Bernhard Voelker
Subject: [PATCH] test-raise: use _Noreturn
Date: Wed, 05 Oct 2011 23:52:22 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.22) Gecko/20110907 SUSE/3.1.14 Thunderbird/3.1.14

From f50501ce455ba0b854fd3e20f22a5779c2c00a52 Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <address@hidden>
Date: Wed, 5 Oct 2011 23:45:15 +0200
Subject: [PATCH] test-raise: use _Noreturn

* tests/test-raise.c (handler): use _Noreturn.
Otherwise, coreutils' "make check" would fail with this:
  cc1: warnings being treated as errors
  test-raise.c: In function 'handler':
  test-raise.c:31:1: error: function might be possible candidate\
    for attribute 'noreturn' [-Wmissing-noreturn]
  make[6]: *** [test-raise.o] Error 1
---
 tests/test-raise.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tests/test-raise.c b/tests/test-raise.c
index 38c2353..6129f9a 100644
--- a/tests/test-raise.c
+++ b/tests/test-raise.c
@@ -25,7 +25,7 @@ SIGNATURE_CHECK (raise, int, (int));

 #include "macros.h"

-static void
+static _Noreturn void
 handler (int sig)
 {
   exit (0);
--
1.7.3.4



reply via email to

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