]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commitdiff
vdi: wrapped uuid_unparse() in #ifdef
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 31 Oct 2014 08:02:05 +0000 (17:02 +0900)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 2 Nov 2014 07:05:35 +0000 (10:05 +0300)
Wrapped uuid_unparse() in #ifdef to avoid "-Wunused-function"
on clang 3.4 or later.

Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
block/vdi.c

index 19701ee00d223669022cc8dc3e03c35dc4289016..e1d211c9f73b754a424bccc6e8bc4710a5de94c9 100644 (file)
@@ -137,12 +137,14 @@ static inline int uuid_is_null(const uuid_t uu)
     return memcmp(uu, null_uuid, sizeof(uuid_t)) == 0;
 }
 
+# if defined(CONFIG_VDI_DEBUG)
 static inline void uuid_unparse(const uuid_t uu, char *out)
 {
     snprintf(out, 37, UUID_FMT,
             uu[0], uu[1], uu[2], uu[3], uu[4], uu[5], uu[6], uu[7],
             uu[8], uu[9], uu[10], uu[11], uu[12], uu[13], uu[14], uu[15]);
 }
+# endif
 #endif
 
 typedef struct {