diff options
| author | David Bremner <david@tethera.net> | 2016-10-05 08:34:34 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2016-11-15 07:47:55 -0400 |
| commit | 0abcad7c0ec2099750720d02b97aa84ce0255f91 (patch) | |
| tree | 17e4beb03fc0d86a1d5590beb1406ced4e4e5d00 /lib | |
| parent | 70c6ac377b29fd17d62d97d13a4c5223bf7785cb (diff) | |
lib: optionally silence Xapian deprecation warnings
This is not ideal, but the new API is not available in Xapian 1.2.x, and
it seems to soon to depend on Xapian >= 1.4
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/database-private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/database-private.h b/lib/database-private.h index ca71a92f..ccc1e9a1 100644 --- a/lib/database-private.h +++ b/lib/database-private.h @@ -32,6 +32,10 @@ #include "notmuch-private.h" +#ifdef SILENCE_XAPIAN_DEPRECATION_WARNINGS +#define XAPIAN_DEPRECATED(D) D +#endif + #include <xapian.h> #pragma GCC visibility push(hidden) |
