Received: from eggs.gnu.org ([2001:4830:134:3::10]:35807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkGjc-0006QG-5g for qemu-devel@nongnu.org; Fri, 31 Oct 2014 14:15:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkGjS-0000u5-VI for qemu-devel@nongnu.org; Fri, 31 Oct 2014 14:15:40 -0400 Message-ID: <5453D1BD.10902@weilnetz.de> Date: Fri, 31 Oct 2014 19:15:25 +0100 From: Stefan Weil MIME-Version: 1.0 References: <1414742525-18639-1-git-send-email-syeon.hwang@samsung.com> In-Reply-To: <1414742525-18639-1-git-send-email-syeon.hwang@samsung.com> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] vdi: wrapped uuid_unparse() in #ifdef List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: SeokYeon Hwang , qemu-devel@nongnu.org, qemu-trivial@nongnu.org Am 31.10.2014 um 09:02 schrieb 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 { This code is only used on build hosts without libuuid development header files, so the warning can be avoided by installing that header files. Nevertheless, I think it is fine for qemu-trivial. Reviewed-by: Stefan Weil