[zeromq-dev] v3.2.0-rc1: warning: ‘struct iovec’ declared inside parameter list

Allan Wind allan_wind at lifeintegrity.com
Sun Aug 5 22:05:07 CEST 2012


Hi,

The trivial program:

#include <zmq.h>
int main() { return 0; }

yields warnings:

allan at vent:~$ gcc -I /home/allan/include 1.c 
In file included from 1.c:1:0:
/home/allan/include/zmq.h:344:45: warning: ‘struct iovec’ 
declared inside parameter list
/home/allan/include/zmq.h:344:45: warning: its scope is only this 
definition or declaration, which is probably not what you want
/home/allan/include/zmq.h:345:45: warning: ‘struct iovec’ 
declared inside parameter list

allan at vent:~$ grep -n iovec include/zmq.h 
344:ZMQ_EXPORT int zmq_sendiov (void *s, struct iovec *iov, 
size_t count, int flags);
345:ZMQ_EXPORT int zmq_recviov (void *s, struct iovec *iov, 
size_t *count, int flags);


/Allan
-- 
Allan Wind
Life Integrity, LLC
<http://lifeintegrity.com>



More information about the zeromq-dev mailing list