raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=8c87fe514dcfd41b3b69ad60421bf15dddea46d7

commit 8c87fe514dcfd41b3b69ad60421bf15dddea46d7
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Sun Feb 12 15:20:23 2017 +0900

    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 b0421ae..9a211d6 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;

-- 


Reply via email to