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

David Bremner david at tethera.net
Mon Mar 14 16:02:28 PDT 2016


Tomi Ollila <tomi.ollila at 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


More information about the notmuch mailing list