Howdy Paul,
Was testing your recent 3.0.2, and saw some warnings that I don't know how far they can bad, there's also some warnings that are harmless. I could do a patch to remove the unused variables but I think it's better you to decide which are to remove or not. Gcc 4.6.3. sortsieve.c: In function 'sort_vacation': sortsieve.c:205:12: warning: variable 'mime' set but not used [-Wunused-but-set-variable] sortsieve.c: In function 'sort_notify': sortsieve.c:264:17: warning: variable 'options' set but not used [-Wunused-but-set-variable] sortsieve.c:263:6: warning: variable 'importance' set but not used [-Wunused-but-set-variable] sortsieve.c:261:35: warning: variable 'method' set but not used [-Wunused-but-set-variable] sortsieve.c:261:14: warning: variable 'message' set but not used [-Wunused-but-set-variable] authsql.c: In function 'auth_change_password': authsql.c:257:77: warning: argument 'enctype' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] dbmail-message.c: In function '_mime_retrieve': dbmail-message.c:347:44: warning: variable 'key' set but not used [-Wunused-but-set-variable] dbmail-message.c:347:28: warning: variable 'order' set but not used [-Wunused-but-set-variable] dbmail-message.c: In function '_message_insert.constprop.7': dbmail-message.c:1244:24: warning: 'r' may be used uninitialized in this function [-Wuninitialized] dbmail-message.c:1205:4: note: 'r' was declared here dbmail-mailbox.c: In function '_do_sort': dbmail-mailbox.c:1055:11: warning: variable 'i' set but not used [-Wunused-but-set-variable] dm_db.c: In function 'mailbox_match_new': dm_db.c:56:7: warning: variable 'p' set but not used [-Wunused-but-set-variable] dm_db.c: In function 'db_append_msg': dm_db.c:3608:8: warning: unused variable 'date' [-Wunused-variable] dm_db.c: In function 'mailboxes_by_regex': dm_db.c:1855:24: warning: variable 'mailbox_like' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] dm_db.c: In function 'db_listmailboxchildren': dm_db.c:2403:24: warning: variable 'mailbox_like' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] dm_misc.c: In function 'dm_get_hash_for_string': dm_misc.c:2246:7: warning: the address of 'hash_algorithm' will always evaluate as 'true' [-Waddress] dm_misc.c:2248:12: warning: the address of 'hash_algorithm' will always evaluate as 'true' [-Waddress] dm_misc.c:2250:12: warning: the address of 'hash_algorithm' will always evaluate as 'true' [-Waddress] dm_misc.c:2252:12: warning: the address of 'hash_algorithm' will always evaluate as 'true' [-Waddress] dm_misc.c:2254:12: warning: the address of 'hash_algorithm' will always evaluate as 'true' [-Waddress] dm_misc.c:2256:12: warning: the address of 'hash_algorithm' will always evaluate as 'true' [-Waddress] dm_misc.c: In function 'dm_base64_decode': dm_misc.c:2343:2: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'size_t' [-Wformat] dm_sset.c: In function 'mapper': dm_sset.c:91:36: warning: unused parameter 'value' [-Wunused-parameter] clientbase.c: In function 'ci_write': clientbase.c:279:3: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'gsize' [-Wformat] clientbase.c:312:4: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'ssize_t' [-Wformat] clientbase.c:312:4: warning: format '%ld' expects argument of type 'long int', but argument 8 has type 'gsize' [-Wformat] clientbase.c: In function 'ci_read_cb': clientbase.c:353:4: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'ssize_t' [-Wformat] clientbase.c: In function 'ci_readln': clientbase.c:415:4: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'size_t' [-Wformat] clientbase.c:423:3: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'size_t' [-Wformat] clientbase.c: In function 'ci_authlog_init': clientbase.c:438:14: warning: variable 'user' might be clobbered by 'longjmp' or 'vfork' [-Wclobbered] authmodule.c: In function 'auth_validate': authmodule.c:163:2: warning: passing argument 2 of 'auth->validate' discards 'const' qualifier from pointer target type [enabled by default] authmodule.c:163:2: note: expected 'char *' but argument is of type 'const char *' authmodule.c:163:2: warning: passing argument 3 of 'auth->validate' discards 'const' qualifier from pointer target type [enabled by default] authmodule.c:163:2: note: expected 'char *' but argument is of type 'const char *' imap4.c: In function 'imap_cb_read': imap4.c:155:2: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'size_t' [-Wformat] imap4.c:155:2: warning: format '%ld' expects argument of type 'long int', but argument 8 has type 'size_t' [-Wformat] dbmail-imapsession.c: In function 'imap4_tokenizer_main': dbmail-imapsession.c:1834:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 7 has type 'size_t' [-Wformat] dbmail-imapsession.c:1834:2: warning: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'size_t' [-Wformat] timsieve.c: In function 'tims_tokenizer': timsieve.c:235:3: warning: format '%ld' expects argument of type 'long int', but argument 7 has type 'size_t' [-Wformat] timsieve.c: In function 'tims': timsieve.c:394:3: warning: format '%ld' expects argument of type 'long int', but argument 6 has type 'size_t' [-Wformat]
_______________________________________________ Dbmail-dev mailing list Dbmail-dev@dbmail.org http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev