aboutsummaryrefslogtreecommitdiff
path: root/lib/database-private.h
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2016-10-05 08:34:34 -0300
committerDavid Bremner <david@tethera.net>2016-11-15 07:47:55 -0400
commit0abcad7c0ec2099750720d02b97aa84ce0255f91 (patch)
tree17e4beb03fc0d86a1d5590beb1406ced4e4e5d00 /lib/database-private.h
parent70c6ac377b29fd17d62d97d13a4c5223bf7785cb (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/database-private.h')
-rw-r--r--lib/database-private.h4
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)