mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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
This commit is contained in:
parent
70c6ac377b
commit
0abcad7c0e
2 changed files with 5 additions and 0 deletions
1
configure
vendored
1
configure
vendored
|
@ -1142,6 +1142,7 @@ COMMON_CONFIGURE_CFLAGS = \\
|
||||||
-DSTD_GETPWUID=\$(STD_GETPWUID) \\
|
-DSTD_GETPWUID=\$(STD_GETPWUID) \\
|
||||||
-DSTD_ASCTIME=\$(STD_ASCTIME) \\
|
-DSTD_ASCTIME=\$(STD_ASCTIME) \\
|
||||||
-DHAVE_XAPIAN_COMPACT=\$(HAVE_XAPIAN_COMPACT) \\
|
-DHAVE_XAPIAN_COMPACT=\$(HAVE_XAPIAN_COMPACT) \\
|
||||||
|
-DSILENCE_XAPIAN_DEPRECATION_WARNINGS \\
|
||||||
-DHAVE_XAPIAN_FIELD_PROCESSOR=\$(HAVE_XAPIAN_FIELD_PROCESSOR) \\
|
-DHAVE_XAPIAN_FIELD_PROCESSOR=\$(HAVE_XAPIAN_FIELD_PROCESSOR) \\
|
||||||
-DHAVE_XAPIAN_DB_RETRY_LOCK=\$(HAVE_XAPIAN_DB_RETRY_LOCK) \\
|
-DHAVE_XAPIAN_DB_RETRY_LOCK=\$(HAVE_XAPIAN_DB_RETRY_LOCK) \\
|
||||||
-DUTIL_BYTE_ORDER=\$(UTIL_BYTE_ORDER)
|
-DUTIL_BYTE_ORDER=\$(UTIL_BYTE_ORDER)
|
||||||
|
|
|
@ -32,6 +32,10 @@
|
||||||
|
|
||||||
#include "notmuch-private.h"
|
#include "notmuch-private.h"
|
||||||
|
|
||||||
|
#ifdef SILENCE_XAPIAN_DEPRECATION_WARNINGS
|
||||||
|
#define XAPIAN_DEPRECATED(D) D
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <xapian.h>
|
#include <xapian.h>
|
||||||
|
|
||||||
#pragma GCC visibility push(hidden)
|
#pragma GCC visibility push(hidden)
|
||||||
|
|
Loading…
Reference in a new issue