Closed symphorien closed 2 years ago
@symphorien not sure about this. HAve you tried with latest git ? What is your gcc version ?
It still happens with current master 13f08da
I use gcc-10.3.0 with -Wall -Wextra -fanalyzer
dovecot version 2.3.18
Do you have the same with fts-solr or fts-lucene ?
The issue is definitely in fts-xapian: it tries to build a struct fts_backend with 3 fields:
but this struct actually has 6 fields:
https://github.com/dovecot/core/blob/main/src/plugins/fts/fts-api-private.h#L83-L92
But this is never done in any other plugin which use only 3 fields (see fts-squat, fts-solr, , fts-lucene)
Well in that case, I suppose it's not a problem.
Some warnings are issued during compilation. I have opened a PR for those I could fix #120 but here are some I don't know how to fix:
Uninitialized function pointers look quite serious.