1 Return-Path: <teythoon@jade-hamburg.de>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id C9A02431FC4
\r
6 for <notmuch@notmuchmail.org>; Mon, 24 Sep 2012 08:21:48 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id fwDf96vNBFwC for <notmuch@notmuchmail.org>;
\r
16 Mon, 24 Sep 2012 08:21:48 -0700 (PDT)
\r
17 Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68])
\r
18 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id BAA32431FDC
\r
21 for <notmuch@notmuchmail.org>; Mon, 24 Sep 2012 08:21:46 -0700 (PDT)
\r
22 Received: from mail.jade-hamburg.de (mail.jade-hamburg.de [85.183.11.228])
\r
23 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
\r
24 (No client certificate requested)
\r
25 by mail.cryptobitch.de (Postfix) with ESMTPSA id 77AEA5AB283
\r
26 for <notmuch@notmuchmail.org>; Mon, 24 Sep 2012 17:21:45 +0200 (CEST)
\r
27 Received: by mail.jade-hamburg.de (Postfix, from userid 401)
\r
28 id E706ADF2A3; Mon, 24 Sep 2012 17:21:44 +0200 (CEST)
\r
29 Received: from thinkbox.jade-hamburg.de (mail.jade-hamburg.de [85.183.11.228])
\r
30 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
\r
31 (No client certificate requested) (Authenticated sender: teythoon)
\r
32 by mail.jade-hamburg.de (Postfix) with ESMTPSA id 1C484DF2A5;
\r
33 Mon, 24 Sep 2012 17:21:32 +0200 (CEST)
\r
34 Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.80)
\r
35 (envelope-from <teythoon@thinkbox.jade-hamburg.de>)
\r
36 id 1TGATQ-0007l6-SN; Mon, 24 Sep 2012 17:21:28 +0200
\r
37 From: Justus Winter <4winter@informatik.uni-hamburg.de>
\r
38 To: notmuch@notmuchmail.org
\r
39 Subject: [PATCH 2/6] Provide a NORETURN_ATTRIBUTE macro similar to
\r
41 Date: Mon, 24 Sep 2012 17:21:16 +0200
\r
43 <1348500080-29726-2-git-send-email-4winter@informatik.uni-hamburg.de>
\r
44 X-Mailer: git-send-email 1.7.10.4
\r
46 <1348500080-29726-1-git-send-email-4winter@informatik.uni-hamburg.de>
\r
47 References: <873927eb5i.fsf@convex-new.cs.unb.ca>
\r
48 <1348500080-29726-1-git-send-email-4winter@informatik.uni-hamburg.de>
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Mon, 24 Sep 2012 15:21:49 -0000
\r
63 This attribute is understood by gcc since version 2.5. clang provides
\r
64 support for testing for function attributes using __has_attribute. For
\r
65 other compilers this macro evaluates to the empty string.
\r
67 Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
\r
69 compat/function-attributes.h | 16 ++++++++++++++++
\r
70 1 file changed, 16 insertions(+)
\r
72 diff --git a/compat/function-attributes.h b/compat/function-attributes.h
\r
73 index 18f9090..8450a17 100644
\r
74 --- a/compat/function-attributes.h
\r
75 +++ b/compat/function-attributes.h
\r
77 #define __has_attribute(x) 0
\r
80 +/* Provide a NORETURN_ATTRIBUTE macro similar to PRINTF_ATTRIBUTE from
\r
83 + * This attribute is understood by gcc since version 2.5. clang
\r
84 + * provides support for testing for function attributes.
\r
86 +#ifndef NORETURN_ATTRIBUTE
\r
87 +#if (__GNUC__ >= 3 || \
\r
88 + (__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || \
\r
89 + __has_attribute (noreturn))
\r
90 +#define NORETURN_ATTRIBUTE __attribute__ ((noreturn))
\r
92 +#define NORETURN_ATTRIBUTE
\r