Re: [PATCH] Fix typo in Message.maildir_flags_to_tags
[notmuch-archives.git] / 31 / 2ddb9a6099e3dd55d87c1abc1e44da9ae6ad52
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 A0F0C431FBD\r
6         for <notmuch@notmuchmail.org>; Mon, 24 Sep 2012 03:32:28 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.001\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.001 tagged_above=-999 required=5\r
12         tests=[UNPARSEABLE_RELAY=0.001] autolearn=disabled\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 5jk+3yYuOVRZ for <notmuch@notmuchmail.org>;\r
16         Mon, 24 Sep 2012 03:32:27 -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 4DADD431FD6\r
21         for <notmuch@notmuchmail.org>; Mon, 24 Sep 2012 03:32:24 -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 E06905AA9CD\r
26         for <notmuch@notmuchmail.org>; Mon, 24 Sep 2012 12:32:22 +0200 (CEST)\r
27 Received: by mail.jade-hamburg.de (Postfix, from userid 401)\r
28         id 4C33FDF2A6; Mon, 24 Sep 2012 12:32:22 +0200 (CEST)\r
29 Received: from thinkbox.jade-hamburg.de (unknown\r
30         [IPv6:fe80::216:d3ff:fe3e:5058%br0])\r
31         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
32         (No client certificate requested) (Authenticated sender: teythoon)\r
33         by mail.jade-hamburg.de (Postfix) with ESMTPSA id 46F03DF2A5;\r
34         Mon, 24 Sep 2012 12:32:12 +0200 (CEST)\r
35 Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.80)\r
36         (envelope-from <teythoon@thinkbox.jade-hamburg.de>)\r
37         id 1TG5xR-0002i5-QR; Mon, 24 Sep 2012 12:32:09 +0200\r
38 From: Justus Winter <4winter@informatik.uni-hamburg.de>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH 2/5] RFC: Provide a NORETURN_ATTRIBUTE macro similar to\r
41         PRINTF_ATTRIBUTE\r
42 Date: Mon, 24 Sep 2012 12:31:54 +0200\r
43 Message-Id:\r
44  <1348482717-10340-3-git-send-email-4winter@informatik.uni-hamburg.de>\r
45 X-Mailer: git-send-email 1.7.10.4\r
46 In-Reply-To:\r
47  <1348482717-10340-1-git-send-email-4winter@informatik.uni-hamburg.de>\r
48 References: <20120922161256.GE26662@mit.edu>\r
49         <1348482717-10340-1-git-send-email-4winter@informatik.uni-hamburg.de>\r
50 X-BeenThere: notmuch@notmuchmail.org\r
51 X-Mailman-Version: 2.1.13\r
52 Precedence: list\r
53 List-Id: "Use and development of the notmuch mail system."\r
54         <notmuch.notmuchmail.org>\r
55 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
57 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
58 List-Post: <mailto:notmuch@notmuchmail.org>\r
59 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
60 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
61         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
62 X-List-Received-Date: Mon, 24 Sep 2012 10:32:28 -0000\r
63 \r
64 This attribute is understood by gcc since version 2.5. clang provides\r
65 support for testing for function attributes using __has_attribute. For\r
66 other compilers this macro evaluates to the empty string.\r
67 \r
68 Note: This is work in progress, please don't merge this patch. The\r
69 question that needs to be discussed is where this kind of macro should\r
70 be defined.\r
71 \r
72 Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>\r
73 ---\r
74  util/error_util.h |   16 ++++++++++++++++\r
75  1 file changed, 16 insertions(+)\r
76 \r
77 diff --git a/util/error_util.h b/util/error_util.h\r
78 index 1b11047..27e119f 100644\r
79 --- a/util/error_util.h\r
80 +++ b/util/error_util.h\r
81 @@ -31,6 +31,22 @@\r
82  #define __has_attribute(x) 0\r
83  #endif\r
84  \r
85 +/* Provide a NORETURN_ATTRIBUTE macro similar to PRINTF_ATTRIBUTE from\r
86 + * talloc.\r
87 + *\r
88 + * This attribute is understood by gcc since version 2.5. clang\r
89 + * provides support for testing for function attributes.\r
90 + */\r
91 +#ifndef NORETURN_ATTRIBUTE\r
92 +#if (__GNUC__ >= 3 ||                          \\r
93 +     (__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || \\r
94 +     __has_attribute (noreturn))\r
95 +#define NORETURN_ATTRIBUTE __attribute__ ((noreturn))\r
96 +#else\r
97 +#define NORETURN_ATTRIBUTE\r
98 +#endif\r
99 +#endif\r
100 +\r
101  /* There's no point in continuing when we've detected that we've done\r
102   * something wrong internally (as opposed to the user passing in a\r
103   * bogus value).\r
104 -- \r
105 1.7.10.4\r
106 \r