|
From: | Consul |
Subject: | [Qemu-devel] Re: Silence passing arg x of `xxxx' from incompatible pointer type warnings on Windows |
Date: | Wed, 06 May 2009 13:27:43 -0700 |
User-agent: | Thunderbird 2.0.0.21 (Windows/20090302) |
Consul wrote:
Johannes Schindelin wrote:Hi, On Mon, 4 May 2009, Consul wrote:Silence "passing arg x of `xxxx' from incompatible pointer type" warnings on Windows.Umm, I think you need to be a bit more specific which compiler you are using. For example, I imagine that this issue just goes away if you use TDM-GCC 4.4.0-2.
Well, gcc 4.4.0 even more noisy in this context. My patch shuts it up as well. On Linux it expects void* anyway, probably on other *nix variants as well, so the cast is justified, isn't it? migration-tcp.c: In function 'tcp_wait_for_connect': migration-tcp.c:61: warning: passing argument 4 of 'getsockopt' from incompatible pointer type /mingw/lib/gcc/mingw32/../../../include/winsock2.h:543: note: expected 'char *' but argument is of type 'int *'
[Prev in Thread] | Current Thread | [Next in Thread] |