From 8c87fe514dcfd41b3b69ad60421bf15dddea46d7 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sun, 12 Feb 2017 15:20:23 +0900 Subject: [PATCH] e comp - wl - add void cast to reduce warnings we're pointer playing anyway so types here are not really useful. we have to get our ptrs right - including alignment, and these warnings are not useful and just noise. --- src/bin/e_comp_wl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/e_comp_wl.h b/src/bin/e_comp_wl.h index b0421ae24..9a211d61f 100644 --- a/src/bin/e_comp_wl.h +++ b/src/bin/e_comp_wl.h @@ -39,7 +39,7 @@ # define container_of(ptr, type, member) \ ({ \ const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \ - (type *)( (char *)__mptr - offsetof(type,member) ); \ + (type *)(void *)( (char *)__mptr - offsetof(type,member) ); \ }) typedef struct _E_Comp_Wl_Buffer E_Comp_Wl_Buffer;