Re: [PATCH] lib: have two definitions of NOTMUCH_DEPRECATED macro
[notmuch-archives.git] / c9 / bf02137b83ffa3b537dd8002a3c70663cf81ed
diff --git a/c9/bf02137b83ffa3b537dd8002a3c70663cf81ed b/c9/bf02137b83ffa3b537dd8002a3c70663cf81ed
new file mode 100644 (file)
index 0000000..969a876
--- /dev/null
@@ -0,0 +1,84 @@
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 1BAC86DE17ED\r
+ for <notmuch@notmuchmail.org>; Tue,  8 Dec 2015 05:15:06 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.706\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.706 tagged_above=-999 required=5 tests=[AWL=0.054, \r
+ SPF_NEUTRAL=0.652] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id e0RlS3NTyqh5 for <notmuch@notmuchmail.org>;\r
+ Tue,  8 Dec 2015 05:15:03 -0800 (PST)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 70A5F6DE17CB\r
+ for <notmuch@notmuchmail.org>; Tue,  8 Dec 2015 05:15:03 -0800 (PST)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id 1FEEB10004A;\r
+ Tue,  8 Dec 2015 15:15:09 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] lib: have two definitions of NOTMUCH_DEPRECATED macro\r
+In-Reply-To: <87egexyusl.fsf@zancas.localnet>\r
+References: <1439303834-27030-1-git-send-email-tomi.ollila@iki.fi>\r
+ <87egexyusl.fsf@zancas.localnet>\r
+User-Agent: Notmuch/0.21+32~g73439f8 (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Tue, 08 Dec 2015 15:15:09 +0200\r
+Message-ID: <m27fkpozdu.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 08 Dec 2015 13:15:06 -0000\r
+\r
+On Tue, Dec 08 2015, David Bremner <david@tethera.net> wrote:\r
+\r
+> Tomi Ollila <tomi.ollila@iki.fi> writes:\r
+>\r
+>> Some compilers (older than gcc 4.5 and clang 2.9) do support\r
+>> __attribute__ ((deprecated)) but not\r
+>> __attribute__ ((deprecated("message"))).\r
+>>\r
+>> Check (clang) and know (gcc) which versions support which variants\r
+>> and make two definitions of define NOTMUCH_DEPRECATED macro;\r
+>> one with and and one without the ("message") part.\r
+>>\r
+>> __has_extension() replacement was modeled after __has_attribute()\r
+>> definition in compat/function-attributes.h. Thanks Justus.\r
+>\r
+> Hi Tomi;\r
+>\r
+> I keep coming back to review this patch, but I'm blocked by the fact\r
+> that clang++ is broken on Debian (and lots of other places, I guess) for\r
+> months.\r
+>\r
+>         https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=797038\r
+\r
+Personally I am not fond of the commit message but I don't want to\r
+emphasize the change by sending an updated one. We could move it\r
+to *moreinfo* to get it out of our ways for the time being -- and\r
+see whether things stabilize (to one way or another) to decide \r
+whether to push this further. \r
+\r
+>\r
+> d\r
+\r
+Tomi\r