[Dovecot] Dovecot 1.1 rc9 compilation warnings

Chris Wakelin c.d.wakelin at reading.ac.uk
Wed Jun 11 17:47:55 EEST 2008


I've tried compiling 1.1.rc9 on everything to hand and I get various 
compilation warnings (but the compilation finishes). I don't know 
whether any of them are worth tracking down?

I'm guessing most of the differences depend on the default gcc options 
and a couple of them are probably specific to our setup.

All were configured with

./configure --prefix=/opt/RDGdovect --with-ssl=openssl --with-ldap

Best Wishes,
Chris

Solaris 8/10 (SPARC gcc 3.3.2/3.4.3)
> In file included from lib.h:6,
>                  from restrict-access.c:7:
> ../../config.h:564:1: warning: "_FILE_OFFSET_BITS" redefined
> In file included from /opt/RDGgcc3/lib/gcc-lib/sparc-sun-solaris2.8/3.3.2/include/sys/types.h:29,
>                  from restrict-access.c:4:
> /usr/include/sys/feature_tests.h:96:1: warning: this is the location of the previous definition

Solaris 10
> charset-utf8.c: In function `charset_to_utf8':
> charset-utf8.c:73: warning: implicit declaration of function `buffer_append'

Solaris 8 and SuSE Enterprise Linux 9 (x86-64 gcc 3.3.3)
> mail-index-map.c: In function `mail_index_map_ext_hdr_check':
> mail-index-map.c:171: warning: comparison between signed and unsigned
> mail-index-map.c: In function `mail_index_map_clone':
> mail-index-map.c:1112: warning: comparison between signed and unsigned
> mail-index-sync-update.c: In function `sync_header_update':
> mail-index-sync-update.c:418: warning: comparison between signed and unsigned
> mail-transaction-log-file.c: In function `log_file_track_mailbox_sync_offset_hdr':
> mail-transaction-log-file.c:682: warning: comparison between signed and unsigned
> mailbox-list-fs-iter.c: In function `list_file_subdir':
> mailbox-list-fs-iter.c:414: warning: `real_path' might be used uninitialized in this function

Solaris 8/10 and SLES 9
> maildir-sync-index.c: In function `maildir_sync_index':
> maildir-sync-index.c:420: warning: comparison between signed and unsigned

Solaris 8/10 and Ubuntu 8.04 (i386 gcc 4.2.3)
> maildir-uidlist.c: In function `maildir_uidlist_refresh_fast_init':
> maildir-uidlist.c:783: warning: comparison between signed and unsigned

Solaris 8/10 and SLES 9
> mail-storage.c: In function `mail_storage_create':
> mail-storage.c:175: warning: `storage' might be used uninitialized in this function

SLES 9
> ssl-proxy-openssl.c: In function `ssl_info_callback':
> ssl-proxy-openssl.c:619: warning: passing arg 1 of `SSL_get_ex_data' discards qualifiers from pointer target type

Solaris 8 and SLES 9
> idxview.c: In function `dump_extensions':
> idxview.c:104: warning: `extensions' might be used uninitialized in this function

Solaris 8/10, SLES 9 and Ubuntu 8.04
> fts-backend-squat.c: In function `fts_backend_squat_expunge_finish':
> fts-backend-squat.c:195: warning: unused parameter `_backend'
> fts-backend-squat.c:196: warning: unused parameter `box'
> fts-backend-squat.c:196: warning: unused parameter `committed'

Solaris 8/10 and SLES 9
> rquota_xdr.c: In function `xdr_getquota_args':
> rquota_xdr.c:17: warning: unused variable `buf'
> rquota_xdr.c: In function `xdr_rquota':
> rquota_xdr.c:36: warning: unused variable `buf'
> rquota_xdr.c: In function `xdr_gqr_status':
> rquota_xdr.c:71: warning: unused variable `buf'
> rquota_xdr.c: In function `xdr_getquota_rslt':
> rquota_xdr.c:88: warning: unused variable `buf'

Ubuntu 8.04
> istream-zlib.c: In function `i_stream_zlib_seek':
> istream-zlib.c:118: warning: implicit declaration of function `gzseek64'

-- 
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
Christopher Wakelin,                           c.d.wakelin at reading.ac.uk
IT Services Centre, The University of Reading,  Tel: +44 (0)118 378 8439
Whiteknights, Reading, RG6 2AF, UK              Fax: +44 (0)118 975 3094


More information about the dovecot mailing list