Re: [PATCH v2] lib: NOTMUCH_DEPRECATED macro also for older compilers

Subject: Re: [PATCH v2] lib: NOTMUCH_DEPRECATED macro also for older compilers

Date: Mon, 14 Mar 2016 20:02:28 -0300

To: Tomi Ollila, notmuch@notmuchmail.org

Cc: tomi.ollila@iki.fi

From: David Bremner


Tomi Ollila <tomi.ollila@iki.fi> 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

Thread: