From 58158f28c359ad15a53097409a1ba1eb19d0cd4c Mon Sep 17 00:00:00 2001 From: Duncan Overbruck Date: Sun, 23 Feb 2020 14:42:57 +0100 Subject: [PATCH] includes/uthash.h: fix -Wcast-qual error --- include/uthash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uthash.h b/include/uthash.h index 76bdca64..06e4901d 100644 --- a/include/uthash.h +++ b/include/uthash.h @@ -144,7 +144,7 @@ typedef unsigned char uint8_t; /* calculate the element whose hash handle address is hhp */ #define ELMT_FROM_HH(tbl,hhp) ((void*)(((char*)(hhp)) - ((tbl)->hho))) /* calculate the hash handle from element address elp */ -#define HH_FROM_ELMT(tbl,elp) ((UT_hash_handle *)(((char*)(elp)) + ((tbl)->hho))) +#define HH_FROM_ELMT(tbl,elp) ((UT_hash_handle *)(void *)(((char*)(elp)) + ((tbl)->hho))) #define HASH_ROLLBACK_BKT(hh, head, itemptrhh) \ do { \