Received: from eggs.gnu.org ([2001:4830:134:3::10]:43880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkDrG-0005SF-Pt for qemu-devel@nongnu.org; Fri, 31 Oct 2014 11:11:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xk7A2-0005hd-LG for qemu-devel@nongnu.org; Fri, 31 Oct 2014 04:02:25 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:26125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xk7A2-0005e1-Ca for qemu-devel@nongnu.org; Fri, 31 Oct 2014 04:02:18 -0400 Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NEA00FMEUBRVF80@mailout1.samsung.com> for qemu-devel@nongnu.org; Fri, 31 Oct 2014 17:02:15 +0900 (KST) From: SeokYeon Hwang Date: Fri, 31 Oct 2014 17:02:05 +0900 Message-id: <1414742525-18639-1-git-send-email-syeon.hwang@samsung.com> Subject: [Qemu-devel] [PATCH] vdi: wrapped uuid_unparse() in #ifdef List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: sw@weilnetz.de, SeokYeon Hwang Wrapped uuid_unparse() in #ifdef to avoid "-Wunused-function" on clang 3.4 or later. Signed-off-by: SeokYeon Hwang --- block/vdi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/vdi.c b/block/vdi.c index 19701ee..e1d211c 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 { -- 2.1.0