From afbc5c20598cfe9625713ea480a4d44d27268433 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 10 Jun 2015 21:47:59 +0200 Subject: [PATCH] Fix compilation error under Xcode 7 (Apple LLVM version 7.0.0 (clang-700.0.53)). Fixes: In file included from src/smbiostbl.c:37: include/xhyve/support/uuid.h:81:53: error: cast from 'unsigned char const (*)[16]' to 'void *' drops const qualifier [-Werror,-Wcast-qual] uuid_internal_t *u = (uuid_internal_t *) ((void *) uuid); ^ 1 error generated. make: *** [build/smbiostbl.o] Error 1 --- include/xhyve/support/uuid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xhyve/support/uuid.h b/include/xhyve/support/uuid.h index 009c617..22e2da2 100644 --- a/include/xhyve/support/uuid.h +++ b/include/xhyve/support/uuid.h @@ -76,7 +76,7 @@ uuid_create_nil(uuid_t *u, uint32_t *status) } static void -uuid_enc_le(void *buf, const uuid_t *uuid) +uuid_enc_le(void *buf, uuid_t *uuid) { uuid_internal_t *u = (uuid_internal_t *) ((void *) uuid); uint8_t *p = buf;