From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1Gg3-0006iY-De for qemu-devel@nongnu.org; Tue, 14 Aug 2012 08:57:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T1Gg1-0005rG-7S for qemu-devel@nongnu.org; Tue, 14 Aug 2012 08:56:55 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:37116) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T1Gg0-0005r2-Uq for qemu-devel@nongnu.org; Tue, 14 Aug 2012 08:56:53 -0400 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 14 Aug 2012 13:56:51 +0100 Received: from d06av11.portsmouth.uk.ibm.com (d06av11.portsmouth.uk.ibm.com [9.149.37.252]) by b06cxnps4075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q7ECuYRg17891564 for ; Tue, 14 Aug 2012 12:56:34 GMT Received: from d06av11.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av11.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q7ECueqU008354 for ; Tue, 14 Aug 2012 06:56:40 -0600 From: Stefan Hajnoczi Date: Tue, 14 Aug 2012 13:56:27 +0100 Message-Id: <1344948988-8627-6-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1344948988-8627-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1344948988-8627-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 5/6] trace/simple: Fix compiler warning for 32 bit hosts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Stefan Weil , qemu-devel@nongnu.org, Stefan Hajnoczi From: Stefan Weil gcc complains when a 32 bit pointer is casted to a 64 bit integer. Cc: Stefan Hajnoczi Signed-off-by: Stefan Weil Signed-off-by: Stefan Hajnoczi --- scripts/tracetool/backend/simple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tracetool/backend/simple.py b/scripts/tracetool/backend/simple.py index c7e47d6..e4b4a7f 100644 --- a/scripts/tracetool/backend/simple.py +++ b/scripts/tracetool/backend/simple.py @@ -79,7 +79,7 @@ def c(events): ) # pointer var (not string) elif type_.endswith('*'): - out(' trace_record_write_u64(&rec, (uint64_t)(uint64_t *)%(name)s);', + out(' trace_record_write_u64(&rec, (uintptr_t)(uint64_t *)%(name)s);', name = name, ) # primitive data type -- 1.7.10.4