From patchwork Tue Dec 23 22:22:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 42613 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A4BE52188F for ; Tue, 23 Dec 2014 22:23:21 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf4508791eek.5 for ; Tue, 23 Dec 2014 14:23:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=0qFSjJNow1mEFqAVnE5KfjUiK2jexr1pRulSsZwDnOs=; b=jhTgpFnXxJmd1IqZ9RmmxplDsSn6YAmMdRilmEuw4xTh/1YKM4O+4Ef+zetoTPDOG0 rhE6CMYpQVTrKoTc6zJWlUj2dz4mn/DAihu3bLP6oFK9eEszGeprYU4Tktn3NtOGVA1i 74wI4XXyQRvIqTbSwWk3bvKoz80ff5w8U8RErhAq8iF86VIMqB8NtFTjFDwOBW5yAzf5 qevANz6DzQ9titlRwD0OcII8n3M0728QWNOsrN2hTJrgbgjZHBpMLuAgo6ix+Q4cMmVU EphWY0daGSBmtZjCAmmQgt3oGQef9bfJjbroYvXGSbJx75rWVAlzpDZbs79dwBx07d6c iMeQ== X-Gm-Message-State: ALoCoQloG7ugOtLLfs6fqbc6EEBc4GFtSeLkcV4JX9N0xVU7Dn5LpRyMXlo/6vymCT7aYypEwwct X-Received: by 10.180.24.35 with SMTP id r3mr3086680wif.0.1419373400565; Tue, 23 Dec 2014 14:23:20 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.130 with SMTP id f2ls1588615lae.21.gmail; Tue, 23 Dec 2014 14:23:20 -0800 (PST) X-Received: by 10.152.27.228 with SMTP id w4mr30795269lag.75.1419373400405; Tue, 23 Dec 2014 14:23:20 -0800 (PST) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id s4si23565105las.118.2014.12.23.14.23.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 23 Dec 2014 14:23:20 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by mail-la0-f50.google.com with SMTP id pn19so6145998lab.23 for ; Tue, 23 Dec 2014 14:23:20 -0800 (PST) X-Received: by 10.112.55.101 with SMTP id r5mr13405452lbp.98.1419373400264; Tue, 23 Dec 2014 14:23:20 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.142.69 with SMTP id ru5csp1460637lbb; Tue, 23 Dec 2014 14:23:19 -0800 (PST) X-Received: by 10.140.100.237 with SMTP id s100mr47761193qge.31.1419373398789; Tue, 23 Dec 2014 14:23:18 -0800 (PST) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 48si24813800qgb.58.2014.12.23.14.23.18 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 23 Dec 2014 14:23:18 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:46415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3XrJ-0002PD-M7 for patch@linaro.org; Tue, 23 Dec 2014 17:23:17 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3XqM-0001Vs-HL for qemu-devel@nongnu.org; Tue, 23 Dec 2014 17:22:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y3XqL-0000KE-4U for qemu-devel@nongnu.org; Tue, 23 Dec 2014 17:22:18 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:54634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3XqK-0000J0-UJ for qemu-devel@nongnu.org; Tue, 23 Dec 2014 17:22:17 -0500 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1Y3XqK-0004dj-AC; Tue, 23 Dec 2014 22:22:16 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Date: Tue, 23 Dec 2014 22:22:16 +0000 Message-Id: <1419373336-17800-3-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1419373336-17800-1-git-send-email-peter.maydell@linaro.org> References: <1419373336-17800-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Cc: qemu-ppc@nongnu.org, Alexander Graf Subject: [Qemu-devel] [PATCH 2/2] target-ppc: Cast ssize_t to size_t before printing with %zx X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: peter.maydell@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 The mingw32 compiler complains about trying to print variables of type ssize_t with the %z format string specifier. Since we're printing it as unsigned hex anyway, cast to size_t to silence the warning. Signed-off-by: Peter Maydell --- I suspect that this is a compiler bug, but this is the only instance in the codebase so I'm prepared to work around it to get to a point where we can turn on warnings-as-errors for w32, because some of the w32-specific errors really are flagging up issues we need to fix. --- hw/ppc/spapr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 08401e0..9aaa800 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -1438,7 +1438,7 @@ static void ppc_spapr_init(MachineState *machine) } if (spapr->rtas_size > RTAS_MAX_SIZE) { hw_error("RTAS too big ! 0x%zx bytes (max is 0x%x)\n", - spapr->rtas_size, RTAS_MAX_SIZE); + (size_t)spapr->rtas_size, RTAS_MAX_SIZE); exit(1); } g_free(filename);