block/vhdx.c: Mark parent_vhdx_guid variable as unused
authorPeter Maydell <peter.maydell@linaro.org>
Sun, 14 Sep 2014 19:29:59 +0000 (20:29 +0100)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 12 Jun 2015 10:20:28 +0000 (19:20 +0900)
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: I58583bcf96fec879068eade50de86c1e2249ea93
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>
block/vhdx.c

index 509baaf484fc18fb5cad6e2c80133a45c1692a39..14ba8b23e746bc29808f0f8709160a347fcbac5a 100644 (file)
@@ -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,