From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TK7LK-0003tc-EY for qemu-devel@nongnu.org; Fri, 05 Oct 2012 08:49:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TK7LJ-00010L-EJ for qemu-devel@nongnu.org; Fri, 05 Oct 2012 08:49:26 -0400 Date: Fri, 5 Oct 2012 14:49:08 +0200 From: Stefan Hajnoczi Message-ID: <20121005124908.GE10951@stefanha-thinkpad.redhat.com> References: <1348852059-8678-1-git-send-email-sw@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1348852059-8678-1-git-send-email-sw@weilnetz.de> Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] qemu-sockets: Fix compiler warning (regression for MinGW) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org On Fri, Sep 28, 2012 at 07:07:39PM +0200, Stefan Weil wrote: > setsockopt needs a type cast for MinGW. That type cast is missing in > a recent commit which results in a compiler warning. > > Like for other socket related functions which have the same problem, > we add a 'qemu_setsockopt' macro which provides that type cast where > needed and use the new macro to avoid the warning. > > A 'qemu_getsockopt' is also added and can be used for future > modifications. > > Signed-off-by: Stefan Weil > --- > qemu-common.h | 10 +++++++++- > qemu-sockets.c | 2 +- > 2 files changed, 10 insertions(+), 2 deletions(-) Thanks, applied to the trivial patches tree: https://github.com/stefanha/qemu/commits/trivial-patches Stefan