grosjo / fts-xapian

Dovecot FTS plugin based on Xapian
GNU Lesser General Public License v2.1
96 stars 21 forks source link

fix printf format warning #150

Closed Philippe23 closed 9 months ago

Philippe23 commented 9 months ago

fix printf format warning

In file included from fts-backend-xapian.cpp:56:
fts-backend-xapian-functions.cpp: In function 'bool fts_backend_xapian_index(xapian_fts_backend*, const char*, icu::UnicodeString*)':
fts-backend-xapian-functions.cpp:1064:48: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
 1064 |                         u = i_strdup_printf("Q%d",backend->lastuid);   
      |                                               ~^  ~~~~~~~~~~~~~~~~
      |                                                |           |
      |                                                int         long int
      |                                               %ld