From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1nir-0003PG-2t for qemu-devel@nongnu.org; Wed, 06 May 2009 16:28:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1nim-0003JC-BB for qemu-devel@nongnu.org; Wed, 06 May 2009 16:28:08 -0400 Received: from [199.232.76.173] (port=53712 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1nim-0003Ir-55 for qemu-devel@nongnu.org; Wed, 06 May 2009 16:28:04 -0400 Received: from main.gmane.org ([80.91.229.2]:37238 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M1nik-0003fr-TH for qemu-devel@nongnu.org; Wed, 06 May 2009 16:28:03 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M1nii-0001j5-Ct for qemu-devel@nongnu.org; Wed, 06 May 2009 20:28:00 +0000 Received: from 204.147.152.1 ([204.147.152.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 May 2009 20:28:00 +0000 Received: from void by 204.147.152.1 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 May 2009 20:28:00 +0000 From: Consul Date: Wed, 06 May 2009 13:27:43 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit In-Reply-To: Sender: news Subject: [Qemu-devel] Re: Silence passing arg x of `xxxx' from incompatible pointer type warnings on Windows List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 *'