Subject: | xs/perl_libzmq4.xs:1156:19: warning: request for implicit conversion from 'void *' to 'P5ZMQ4_Socket * |
Just a notice that GCC 5 warns on this line:
gcc -c "-I." "-I/usr/include" "-Ixs" "-I." -D_REENTRANT -D_GNU_SOURCE -fwrapv -
fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SO
URCE -D_FILE_OFFSET_BITS=64 -Wall -Wextra -Wdeclaration-after-statement -Wc++-co
mpat -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexcept
ions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -o xs/perl_libzmq4.o -fPIC "-I/usr/lib64/perl5/CORE" -DUSE_PPPORT -DHAS_ZMQ_MSG_SEND -DHAS_ZMQ_SOCKET_MONITOR -DHAS_ZMQ_CTX_NEW -DHAS_ZMQ_PROXY -DHAS_ZMQ_RECVMSG -DHAS_ZMQ_UNBIND -DHAS_ZMQ_CTX_GET -DHAS_ZMQ_CTX_DESTROY -DHAS_ZMQ_CTX_SET -DHAS_ZMQ_DISCONNECT -DHAS_ZMQ_INIT -DHAS_ZMQ_SENDMSG -DHAS_ZMQ_TERM -DHAS_ZMQ_MSG_RECV -DHAS_ZMQ_DEVICE xs/perl_libzmq4.c
xs/perl_libzmq4.xs: In function 'XS_ZMQ__LibZMQ4_zmq_proxy':
xs/perl_libzmq4.xs:1156:19: warning: request for implicit conversion from 'void *' to 'P5ZMQ4_Socket * {aka struct <anonymous> *}' not permitted in C++ [-Wc++-compat]
capture = capture->socket;
^
The type definition is:
typedef struct {
void *socket;
SV *assoc_ctxt; /* keep context around with sockets so we know */
pid_t pid;
} P5ZMQ4_Socket;
Indeed storing void* into non-void* is strange. If you are sure the socket pointer holds pointer to P5ZMQ4_Socket, then please add the type cast like:
capture = (P5ZMQ4_Socket *)capture->socket;