From patchwork Mon Sep 22 11:41:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 37676 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0F6B520C03 for ; Mon, 22 Sep 2014 11:44:07 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id s18sf3217907lam.1 for ; Mon, 22 Sep 2014 04:44: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: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=cOTHGqNJy5FD/vF0pJHSsHLzVCRWwPQifQ9cs0dV3Euaavr3BxsIBUULXUQz9il4zV vvIXgbVQp4l/Iw2ZLugBJz4ZKOwX4yMH8nGbfaNYOH5JyjvYe0buzcT+swi4kAixInVf w0bmlWBLe+XqI1IW53TBy0fVASBF6atLKZqQ5ItjHfcE4AXrosSPA1IM5fcoOqgPAe+J eOQwFevdOKX0+xW1IpwnuF/YB0lDu4LxeME3OzXtFuStEHyjhzEJWXdXEndfl+43UNh0 ZzWbODNmhDVvPRaqLVcazcH9ALScHyF4BYwd64Cyx2G/UdwnhV44LCL3iz1z9lndttjl gNMA== X-Gm-Message-State: ALoCoQndVCXgvNIdH7zoIf6/DTkIER23A8DfOWh8Xl4wamj9KADdHuUATRYPiha3jdbAlOoDuJ1K X-Received: by 10.194.100.3 with SMTP id eu3mr16697wjb.6.1411386246655; Mon, 22 Sep 2014 04:44:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.130 with SMTP id m2ls271845laf.89.gmail; Mon, 22 Sep 2014 04:44:06 -0700 (PDT) X-Received: by 10.152.87.170 with SMTP id az10mr25328884lab.20.1411386246509; Mon, 22 Sep 2014 04:44:06 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) by mx.google.com with ESMTPS id rc5si14069906lac.118.2014.09.22.04.44.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Sep 2014 04:44:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id gi9so6383300lab.24 for ; Mon, 22 Sep 2014 04:44:06 -0700 (PDT) X-Received: by 10.152.179.226 with SMTP id dj2mr25352596lac.40.1411386245928; Mon, 22 Sep 2014 04:44:05 -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 of9csp219452lbb; Mon, 22 Sep 2014 04:44:05 -0700 (PDT) X-Received: by 10.224.112.65 with SMTP id v1mr8851149qap.80.1411386244849; Mon, 22 Sep 2014 04:44:04 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id hb5si8794864qcb.44.2014.09.22.04.44.04 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 22 Sep 2014 04:44:04 -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]:45099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW22F-0005TZ-Mx for patch@linaro.org; Mon, 22 Sep 2014 07:44:03 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46873) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW216-0004LR-Kr for qemu-devel@nongnu.org; Mon, 22 Sep 2014 07:42:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XW211-0007ST-At for qemu-devel@nongnu.org; Mon, 22 Sep 2014 07:42:52 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3065) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW211-0007QY-3J for qemu-devel@nongnu.org; Mon, 22 Sep 2014 07:42:47 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8MBgeII000767 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 22 Sep 2014 07:42:40 -0400 Received: from localhost (ovpn-112-62.ams2.redhat.com [10.36.112.62]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s8MBgcU4020184; Mon, 22 Sep 2014 07:42:39 -0400 From: Stefan Hajnoczi To: Date: Mon, 22 Sep 2014 12:41:32 +0100 Message-Id: <1411386150-24003-2-git-send-email-stefanha@redhat.com> In-Reply-To: <1411386150-24003-1-git-send-email-stefanha@redhat.com> References: <1411386150-24003-1-git-send-email-stefanha@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 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 v2 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.215.51 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,