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]". -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190318/a5b5d2d4/attachment.html> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: child-wait_c.log URL: <https://dovecot.org/pipermail/dovecot/attachments/20190318/a5b5d2d4/attachment.log>
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 master with https://github.com/dovecot/core/commit/ac7aa955db4c77bbb169baa5d104a4c128674646.patch Aki -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190318/9c16af27/attachment.html>
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, auth-request-handler.c, db-checkpassword.c, service-monitor.c, service-process.c, pop3-commands.c, log-connection.c, doveconf.c, user-directory.c, replicator-connection.c, dsync-mailbox-import.c, dsync-mailbox-export.c, dsync-transaction-log-scan.c, doveadm-director.c, doveadm-kick.c, acl-cache.c, doveadm-expire.c and push-notification-txn-msg.c. ??????? Original Message ??????? On Monday, March 18, 2019 10:50 AM, Aki Tuomi <aki.tuomi at open-xchange.com> wrote:> 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 master with > > https://github.com/dovecot/core/commit/ac7aa955db4c77bbb169baa5d104a4c128674646.patch > > Aki-------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20190318/fca27484/attachment-0001.html>
Apparently Analagous Threads
- child-wait.c and [-Wnull-pointer-arithmetic]
- Upgrade from 2.1.17 2.2.36
- [PATCH] virtio_ring: use alloc_pages_node for NUMA-aware allocation
- [PATCH 3/8] vhost scsi: alloc cmds per vq instead of session
- [PATCH v10 0/2] s390: virtio: let arch validate VIRTIO features