summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-09-14 20:29:59 +0100
committerGiWoong Kim <giwoong.kim@samsung.com>2014-10-27 21:36:00 -0700
commit01429f7d8a12b09270bac795fc74013fc2b4d79f (patch)
tree57da88f954d96714e7cf2129d73b9f41b3dd0777
parent7b7a72fb6df094d5e39837df3765523f37ac8465 (diff)
downloadqemu-01429f7d8a12b09270bac795fc74013fc2b4d79f.tar.gz
qemu-01429f7d8a12b09270bac795fc74013fc2b4d79f.tar.bz2
qemu-01429f7d8a12b09270bac795fc74013fc2b4d79f.zip
block/vhdx.c: Mark parent_vhdx_guid variable as unused
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. Change-Id: I9748b3b20922666e5f2efceb80e37e99ea3430ce Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Fam Zheng <famz@redhat.com> Reviewed-by: Jeff Cody <jcody@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r--block/vhdx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block/vhdx.c b/block/vhdx.c
index 509baaf484..14ba8b23e7 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,