From patchwork Fri Sep 19 14:41:20 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 37642 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 1DC0520293 for ; Fri, 19 Sep 2014 14:43:58 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf208989eek.9 for ; Fri, 19 Sep 2014 07:43:57 -0700 (PDT) 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=sHoVyR2Ytant2GptmVl/P2lCP+/7SFjFPBtHZ5S1tUU=; b=X5cR36o92mCZ+Y8zVtHZTrvPtra/g/adI00D9mXSKdwRi4U9FNO1BEMLbgfs6LsP2d IoaCX1p/vs5q9rcE5pamOkBK54GPeYkIxWcnvdaEW9Lz4kwq5doJQmnes+KjyUyH3T0/ YWIN0X1CsHrLStdJ85eu8lSeoOJuKBeLAdebXZDQzl2cZFLVqu53XdW5rkhtwnp0qeHJ snR2G/mRi2it5cj5U2wrRAuHct1gSjs+qN9U3K8mnTmNEynj2iH9GtxFBU3A/qz3We/R 4bXxFt5Njg+WU1PtIzp938PaQPCIwtzGP6o592+XFUFPdNbWeDCk3KgEAPXnzZWQ7yaG i3Qg== X-Gm-Message-State: ALoCoQmLEuIB2Uy7T20oe4+7XENVY5CL7bZLGtdowI/ZTXqus0TXiNAufJWDFOvtWT5RZX8olcUq X-Received: by 10.180.108.70 with SMTP id hi6mr423496wib.4.1411137837265; Fri, 19 Sep 2014 07:43:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.116.18 with SMTP id js18ls360860lab.69.gmail; Fri, 19 Sep 2014 07:43:57 -0700 (PDT) X-Received: by 10.112.62.200 with SMTP id a8mr6924892lbs.34.1411137837145; Fri, 19 Sep 2014 07:43:57 -0700 (PDT) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) by mx.google.com with ESMTPS id i1si2854239laf.41.2014.09.19.07.43.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Sep 2014 07:43:56 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id b12so3254382lbj.39 for ; Fri, 19 Sep 2014 07:43:56 -0700 (PDT) X-Received: by 10.112.76.6 with SMTP id g6mr7028615lbw.22.1411137836837; Fri, 19 Sep 2014 07:43:56 -0700 (PDT) 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.130.169 with SMTP id of9csp947506lbb; Fri, 19 Sep 2014 07:43:56 -0700 (PDT) X-Received: by 10.140.105.244 with SMTP id c107mr720968qgf.15.1411137835603; Fri, 19 Sep 2014 07:43:55 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id n11si2024231qge.21.2014.09.19.07.43.55 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 19 Sep 2014 07:43:55 -0700 (PDT) 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]:58543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUzPe-0007Mi-OE for patch@linaro.org; Fri, 19 Sep 2014 10:43:54 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUzOY-0006M8-2B for qemu-devel@nongnu.org; Fri, 19 Sep 2014 10:42:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUzOQ-00070Y-Es for qemu-devel@nongnu.org; Fri, 19 Sep 2014 10:42:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUzOQ-0006ye-7P for qemu-devel@nongnu.org; Fri, 19 Sep 2014 10:42:38 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8JEgV2w013298 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 19 Sep 2014 10:42:31 -0400 Received: from localhost (ovpn-112-56.ams2.redhat.com [10.36.112.56]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s8JEgTAK013017; Fri, 19 Sep 2014 10:42:30 -0400 From: Stefan Hajnoczi To: Date: Fri, 19 Sep 2014 15:41:20 +0100 Message-Id: <1411137738-31280-2-git-send-email-stefanha@redhat.com> In-Reply-To: <1411137738-31280-1-git-send-email-stefanha@redhat.com> References: <1411137738-31280-1-git-send-email-stefanha@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Peter Maydell , Stefan Hajnoczi Subject: [Qemu-devel] [PULL 01/59] block/vhdx.c: Mark parent_vhdx_guid variable as unused 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: patch@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.217.180 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 From: Peter Maydell The parent_vhdx_guid variable is defined but never used, which provokes complaints from newer versions of clang. Since the variable definition is here acting as documentation of the image format, mark it with the 'unused' attribute to keep the compiler happy rather than simply deleting it. Signed-off-by: Peter Maydell Reviewed-by: Fam Zheng Reviewed-by: Jeff Cody Signed-off-by: Stefan Hajnoczi --- block/vhdx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block/vhdx.c b/block/vhdx.c index 796b7bd..d9aa2c1 100644 --- a/block/vhdx.c +++ b/block/vhdx.c @@ -99,7 +99,8 @@ static const MSGUID logical_sector_guid = { .data1 = 0x8141bf1d, /* Each parent type must have a valid GUID; this is for parent images * of type 'VHDX'. If we were to allow e.g. a QCOW2 parent, we would * need to make up our own QCOW2 GUID type */ -static const MSGUID parent_vhdx_guid = { .data1 = 0xb04aefb7, +static const MSGUID parent_vhdx_guid __attribute__((unused)) + = { .data1 = 0xb04aefb7, .data2 = 0xd19e, .data3 = 0x4a81, .data4 = { 0xb7, 0x89, 0x25, 0xb8,