From 17d0e7db3955e14c92c88d34a726b82a2217805a Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Wed, 22 Jun 2022 23:58:09 +0000 Subject: poll: kqueue: Fix -Wincompatible-pointer-types-discards-qualifiers * poll/unix/kqueue.c(impl_pollset_add): Cast to (void *) to "break" constantnes of descriptor. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902178 13f79535-47bb-0310-9956-ffa450edef68 --- poll/unix/kqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poll/unix/kqueue.c b/poll/unix/kqueue.c index aa4251f1b..7fbfbb882 100644 --- a/poll/unix/kqueue.c +++ b/poll/unix/kqueue.c @@ -171,7 +171,7 @@ static apr_status_t impl_pollset_add(apr_pollset_t *pollset, if (descriptor->reqevents & APR_POLLIN) { if (pollset->flags & APR_POLLSET_NOCOPY) { EV_SET(&pollset->p->kevent, fd, EVFILT_READ, EV_ADD, 0, 0, - descriptor); + (void *)descriptor); } else { EV_SET(&pollset->p->kevent, fd, EVFILT_READ, EV_ADD, 0, 0, @@ -187,7 +187,7 @@ static apr_status_t impl_pollset_add(apr_pollset_t *pollset, if (descriptor->reqevents & APR_POLLOUT && rv == APR_SUCCESS) { if (pollset->flags & APR_POLLSET_NOCOPY) { EV_SET(&pollset->p->kevent, fd, EVFILT_WRITE, EV_ADD, 0, 0, - descriptor); + (void *)descriptor); } else { EV_SET(&pollset->p->kevent, fd, EVFILT_WRITE, EV_ADD, 0, 0, -- cgit v1.2.1