From patchwork Sun Sep 14 19:29:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 37387 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f199.google.com (mail-we0-f199.google.com [74.125.82.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6EEDA206A5 for ; Sun, 14 Sep 2014 19:31:07 +0000 (UTC) Received: by mail-we0-f199.google.com with SMTP id q58sf1596695wes.2 for ; Sun, 14 Sep 2014 12:31:06 -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:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=agqk17JouhbkwuF/aknvTHD9DboFApS58Q/2JnSBFR0=; b=UVEqeR78lPsXIPZW4MxzLoNtuhevoJ4ID/v3z+sqTfrVtSdk9C0jVyOck/gBOJJIcz lmdKw83j2KDITtmTmCvEEsjDLfd/1Jj/sDqdvfzBF0nx6qk+6K0l/ToFJUtbrMdOZ1hG mtUeyJCFpjyfjvj5u8UYDt3wNQiEi55is/ksqda8ecN4kWnYRs2Gx1V0nehADmW3WsCi JFvkYqu86yYLyTTShJjI4xRdB8Zb3/Tz6P9/AvqTTBuO72IyHYqjde8xbwlaoMvF9RZo vSQtZMOSHSlBAO5ZhemPu5HWJz1ZNi8SdvwHVPTDqoUnzMk4koGFOI/HoiioRhmton1U ma0Q== X-Gm-Message-State: ALoCoQmdInF3RbkFST+lhGpFa9Cf8qJ6lHZETBb4PcTVr21i3MIsCVoNpnu9uvQyA8ngi0aE+NOK X-Received: by 10.180.105.3 with SMTP id gi3mr4371611wib.3.1410723066365; Sun, 14 Sep 2014 12:31:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.8.169 with SMTP id s9ls261083laa.47.gmail; Sun, 14 Sep 2014 12:31:05 -0700 (PDT) X-Received: by 10.112.209.37 with SMTP id mj5mr22459329lbc.55.1410723065951; Sun, 14 Sep 2014 12:31:05 -0700 (PDT) Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) by mx.google.com with ESMTPS id rr2si16166367lbb.31.2014.09.14.12.31.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 14 Sep 2014 12:31:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.49 as permitted sender) client-ip=209.85.215.49; Received: by mail-la0-f49.google.com with SMTP id pv20so3472630lab.8 for ; Sun, 14 Sep 2014 12:31:05 -0700 (PDT) X-Received: by 10.152.246.6 with SMTP id xs6mr23518685lac.56.1410723065810; Sun, 14 Sep 2014 12:31:05 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.112.130.169 with SMTP id of9csp112766lbb; Sun, 14 Sep 2014 12:31:05 -0700 (PDT) X-Received: by 10.181.13.116 with SMTP id ex20mr18479302wid.31.1410723065171; Sun, 14 Sep 2014 12:31:05 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk. [81.2.115.146]) by mx.google.com with ESMTPS id wq4si16145957wjc.39.2014.09.14.12.31.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 14 Sep 2014 12:31:05 -0700 (PDT) Received-SPF: none (google.com: pm215@archaic.org.uk does not designate permitted sender hosts) client-ip=81.2.115.146; Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1XTFUl-0004Zv-NQ; Sun, 14 Sep 2014 20:29:59 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Jeff Cody , Kevin Wolf , Stefan Hajnoczi Subject: [PATCH] block/vhdx.c: Mark parent_vhdx_guid variable as unused Date: Sun, 14 Sep 2014 20:29:59 +0100 Message-Id: <1410722999-17574-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.10.4 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.49 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- block/vhdx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/block/vhdx.c b/block/vhdx.c index 87c99fc..367a3e7 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,