From 62687405b03eeea570b6f5d196d961af63680f2c Mon Sep 17 00:00:00 2001 From: David Bremner Date: Tue, 15 Mar 2016 20:02:28 +2100 Subject: [PATCH] Re: [PATCH v2] lib: NOTMUCH_DEPRECATED macro also for older compilers --- ec/913fbf5ae706a3d3005cc26926e0b23cbf5d7c | 66 +++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 ec/913fbf5ae706a3d3005cc26926e0b23cbf5d7c diff --git a/ec/913fbf5ae706a3d3005cc26926e0b23cbf5d7c b/ec/913fbf5ae706a3d3005cc26926e0b23cbf5d7c new file mode 100644 index 000000000..f5e3e45f8 --- /dev/null +++ b/ec/913fbf5ae706a3d3005cc26926e0b23cbf5d7c @@ -0,0 +1,66 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id A6ADE6DE18BF + for ; Mon, 14 Mar 2016 16:02:33 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.031 +X-Spam-Level: +X-Spam-Status: No, score=-0.031 tagged_above=-999 required=5 + tests=[AWL=-0.020, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id u6Mw2yrB47qH for ; + Mon, 14 Mar 2016 16:02:32 -0700 (PDT) +Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) + by arlo.cworth.org (Postfix) with ESMTPS id EEC786DE1868 + for ; Mon, 14 Mar 2016 16:02:31 -0700 (PDT) +Received: from remotemail by fethera.tethera.net with local (Exim 4.84) + (envelope-from ) + id 1afbVz-0005Pm-0g; Mon, 14 Mar 2016 19:03:07 -0400 +Received: (nullmailer pid 15830 invoked by uid 1000); + Mon, 14 Mar 2016 23:02:28 -0000 +From: David Bremner +To: Tomi Ollila , notmuch@notmuchmail.org +Cc: tomi.ollila@iki.fi +Subject: Re: [PATCH v2] lib: NOTMUCH_DEPRECATED macro also for older compilers +In-Reply-To: <1456860607-3523-1-git-send-email-tomi.ollila@iki.fi> +References: <1456860607-3523-1-git-send-email-tomi.ollila@iki.fi> +User-Agent: Notmuch/0.21+74~g6c60fb1 (http://notmuchmail.org) Emacs/24.5.1 + (x86_64-pc-linux-gnu) +Date: Mon, 14 Mar 2016 20:02:28 -0300 +Message-ID: <87ziu04q9n.fsf@zancas.localnet> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 14 Mar 2016 23:02:33 -0000 + +Tomi Ollila writes: + +> Some compilers (older than gcc 4.5 and clang 2.9) do support +> __attribute__ ((deprecated)) but not +> __attribute__ ((deprecated("message"))). +> +> Check if clang version is at least 3.0, or gcc version +> is at least 4.5 to define NOTMUCH_DEPRECATED as the +> latter variant above. Otherwise define NOTMUCH_DEPRECATED +> as the former variant above. + + +pushed, + +d -- 2.26.2