Closed jurajlutter closed 4 years ago
The last warning (about mixture of designated and non-designated initializers) can be silenced by:
--- src/fts-backend-xapian.cpp.orig 2020-10-23 07:37:57 UTC
+++ src/fts-backend-xapian.cpp
@@ -656,7 +656,7 @@ static int fts_backend_xapian_lookup_multi (struct fts
struct fts_backend fts_backend_xapian = {
.name = "xapian",
.flags = FTS_BACKEND_FLAG_BUILD_FULL_WORDS,
- {
+ .v = {
fts_backend_xapian_alloc,
fts_backend_xapian_init,
fts_backend_xapian_deinit,
Please review according changes in latest commit
Hi,
while building fts-xapian on FreeBSD (I'm mail/dovecot-fts-xapian maintainer), some warnings are shown:
Some of them are quite easy to fix (using
%ld
in place of%d
on apropriate places. If this is not to be upstreamed, we can keep this patched locally in FreeBSD ports), but the linei_strdup_printf("Expunging UID=%d '%s' : %s",docid,backend->boxname)
will need some care from someone who knows what that function should print. I would also suggest to fully unfold thefts_backend_xapian
definition with full structure member names included.Thanks.