Re: child-wait.c and [-Wnull-pointer-arithmetic]

2019-03-18 Thread Rupert Gallagher via dovecot
Thanks! It solved problems also with str-table.c, test-hash.c, test-mempool.c, auth-server-connection.c, master-auth.c, master-login-auth.c, mail-cache-fields.c, mail-index.c, mailbox-list-index.c, mailbox-list-index-sync.c, maildir-keywords.c, mdbox-purge.c, connect-limit.c,

Re: child-wait.c and [-Wnull-pointer-arithmetic]

2019-03-18 Thread Aki Tuomi via dovecot
On 18.3.2019 12.48, Rupert Gallagher via dovecot wrote: > Attached warnings from clang 7.0 when compiling child-wait.c from > dovecot 2.3.5: > > "arithmetic on a null pointer treated as a cast from integer to > pointer is a GNU extension > [-Wnull-pointer-arithmetic]". > > > This is fixed in

child-wait.c and [-Wnull-pointer-arithmetic]

2019-03-18 Thread Rupert Gallagher via dovecot
Attached warnings from clang 7.0 when compiling child-wait.c from dovecot 2.3.5: "arithmetic on a null pointer treated as a cast from integer to pointer is a GNU extension [-Wnull-pointer-arithmetic]".child-wait.c:66:32: warning: arithmetic on a null pointer treated as a cast fr