diff options
author | SeokYeon Hwang <syeon.hwang@samsung.com> | 2014-10-31 17:02:05 +0900 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-11-02 10:05:35 +0300 |
commit | f18a768efb990d9cd02911159de02e8ff5475239 (patch) | |
tree | 2b8a1e65af904ce16edba8afa3a773ece94f24c8 /block | |
parent | 84f8f3dace8c6e88b1afa828f9abe1e9a57fac1a (diff) |
vdi: wrapped uuid_unparse() in #ifdef
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>
Diffstat (limited to 'block')
-rw-r--r-- | block/vdi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/vdi.c b/block/vdi.c index 19701ee00d..e1d211c9f7 100644 --- a/block/vdi.c +++ b/block/vdi.c @@ -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 { |