From 5418856d5e065dcf8c4f38b1511a2b5c7b8953df Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 7 Apr 2017 17:32:50 +0200 Subject: [PATCH] Make (justified) warning silent with clang. (Already explained in the note) --- m-mempool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-mempool.h b/m-mempool.h index a336a618..efd9bd37 100644 --- a/m-mempool.h +++ b/m-mempool.h @@ -126,7 +126,7 @@ { \ /* NOTE: Unsafe cast: suppose that the given pointer \ was allocated by the previous alloc function. */ \ - M_C3(mempool_,name,_union_t) *ret = (M_C3(mempool_,name,_union_t) *)ptr; \ + M_C3(mempool_,name,_union_t) *ret = (M_C3(mempool_,name,_union_t) *)(uintptr_t)ptr; \ ret->next = mem->free_list; \ mem->free_list = ret; \ mem->count--; \