bug in <sys/un.h>

Eric Blake eblake@redhat.com
Thu May 30 20:03:00 GMT 2013


On 05/30/2013 11:37 AM, Eric Blake wrote:
> foo.c:9:5: warning: passing argument 2 of 'sendmsg' from incompatible
> pointer type
> /usr/include/sys/socket.h:42:11: note: expected 'const struct msghdr *'
> but argument is of type 'const struct msghdr *'
> $ gcc -o foo -Wall foo.c -DWORKAROUND
> $
> 
> Gcc has a less-than-stellar error message (expect type X but have type
> X);

I just filed http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57475 for the
gcc error message quality

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20130530/639ac99f/attachment.sig>


More information about the Cygwin mailing list