Hi Paul,

 

Since you're taking care of compiler warnings, here's a few more, from
GCC-4.8

 

---

 

authsql.c: In function 'auth_change_password':

authsql.c:263:80: warning: argument 'enctype' might be clobbered by
'longjmp' or 'vfork' [-Wclobbered]

int auth_change_password(uint64_t user_idnr, const char *new_pass, const
char *enctype)

 

dm_mailbox.c: In function 'mailbox_search':

dm_mailbox.c:1224:8: warning: variable 'inset' might be clobbered by
'longjmp' or 'vfork' [-Wclobbered]

 char *inset = NULL;

        ^

 

 

dm_db.c:1879:3: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 6 has type 'size_t' [-Wformat=]

   TRACE(TRACE_INFO, "error reading from stream [%lu/%lu]", read, size);

   ^

dm_db.c:1879:3: warning: format '%lu' expects argument of type 'long
unsigned int', but argument 7 has type 'size_t' [-Wformat=]

dm_db.c:1887:24: warning: comparison between signed and unsigned integer
expressions [-Wsign-compare]

   while (raw[pos] && n < lines) {

                        ^

dm_db.c: In function 'db_findmailbox_owner':

dm_db.c:1968:10: warning: 'frag' may be used uninitialized in this function
[-Wmaybe-uninitialized]

  snprintf(query, DEF_QUERYSIZE-1,

          ^

 

 

clientbase.c: In function 'ci_authlog_init':

clientbase.c:476:77: warning: argument 'username' might be clobbered by
'longjmp' or 'vfork' [-Wclobbered]

void ci_authlog_init(ClientBase_T *client, const char *service, const char
*username, const char *status)

           

_______________________________________________
Dbmail-dev mailing list
Dbmail-dev@dbmail.org
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail-dev

Reply via email to