diff options
| author | Michael J Gruber <git@grubix.eu> | 2022-04-15 18:23:46 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-04-15 14:17:31 -0300 |
| commit | 785f9d656d547a325c978eee51cf7e52ed2fe625 (patch) | |
| tree | 146030e902e7a80a67361cab205824641ef581b0 /lib/query.cc | |
| parent | 78aaef9a0b6f106e648367b18b46b48d885f9213 (diff) | |
fix build without sfsexp
a1d139de ("lib: add sexp: prefix to Xapian (infix) query parser.",
2022-04-09) introduced sfsexp infix queries. This requires the infix
preprocessor to be built in in a way which does not require sfsexp when
notmuch is built without it.
Make the preprocessor throw a Xapian error in this case (and fix the
build).
Signed-off-by: Michael J Gruber <git@grubix.eu>
Diffstat (limited to 'lib/query.cc')
| -rw-r--r-- | lib/query.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/query.cc b/lib/query.cc index b0937fcc..707f6222 100644 --- a/lib/query.cc +++ b/lib/query.cc @@ -227,6 +227,7 @@ _notmuch_query_ensure_parsed_xapian (notmuch_query_t *query) return NOTMUCH_STATUS_SUCCESS; } +#if HAVE_SFSEXP static notmuch_status_t _notmuch_query_ensure_parsed_sexpr (notmuch_query_t *query) { @@ -243,6 +244,7 @@ _notmuch_query_ensure_parsed_sexpr (notmuch_query_t *query) _notmuch_query_cache_terms (query); return NOTMUCH_STATUS_SUCCESS; } +#endif static notmuch_status_t _notmuch_query_ensure_parsed (notmuch_query_t *query) |
