Received: from eggs.gnu.org ([208.118.235.92]:52673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdyIe-0005TF-HT for qemu-devel@nongnu.org; Thu, 29 Nov 2012 02:12:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TdyId-0004SQ-Bm for qemu-devel@nongnu.org; Thu, 29 Nov 2012 02:12:44 -0500 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:37691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TdyId-0004OR-4t for qemu-devel@nongnu.org; Thu, 29 Nov 2012 02:12:43 -0500 Message-ID: <50B70AE3.7090001@weilnetz.de> Date: Thu, 29 Nov 2012 08:12:35 +0100 From: Stefan Weil MIME-Version: 1.0 References: <1353998083-17120-1-git-send-email-sw@weilnetz.de> In-Reply-To: <1353998083-17120-1-git-send-email-sw@weilnetz.de> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for 1.3] qapi: Fix compiler warning caused by wrong type (32 bit hosts) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Blue Swirl , QEMU Developers , Stefan Hajnoczi Am 27.11.2012 07:34, schrieb Stefan Weil: > The function prototype of qapi_dealloc_type_size must match the > declaration in qapi/qapi-visit-core.h: > > void (*type_size)(Visitor *v, uint64_t *obj, const char *name, Error **errp); > > Otherwise builds on hosts where size_t != uint64_t raise a compiler > warning. > > Signed-off-by: Stefan Weil > --- > > Hi Anthony, > > this is an urgent build fix for 1.3. > > Regards > Stefan > > qapi/qapi-dealloc-visitor.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/qapi/qapi-dealloc-visitor.c b/qapi/qapi-dealloc-visitor.c > index a07b171..75214e7 100644 > --- a/qapi/qapi-dealloc-visitor.c > +++ b/qapi/qapi-dealloc-visitor.c > @@ -132,7 +132,7 @@ static void qapi_dealloc_type_number(Visitor *v, double *obj, const char *name, > { > } > > -static void qapi_dealloc_type_size(Visitor *v, size_t *obj, const char *name, > +static void qapi_dealloc_type_size(Visitor *v, uint64_t *obj, const char *name, > Error **errp) > { > } Ping? Either this patch or http://patchwork.ozlabs.org/patch/202296/ should be committed to 1.3 asap.