From f50501ce455ba0b854fd3e20f22a5779c2c00a52 Mon Sep 17 00:00:00 2001
From: Bernhard Voelker <m...@bernhard-voelker.de>
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