summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-12 15:20:23 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-12 16:25:35 +0900
commit8c87fe514dcfd41b3b69ad60421bf15dddea46d7 (patch)
tree94b9f49267765599837404ea711b7f1cfbef9ef3
parent8c70210ee6cf4c04f8a61ad27bbf216436659d34 (diff)
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.
-rw-r--r--src/bin/e_comp_wl.h2
1 files changed, 1 insertions, 1 deletions
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 @@
39# define container_of(ptr, type, member) \ 39# define container_of(ptr, type, member) \
40 ({ \ 40 ({ \
41 const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \ 41 const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \
42 (type *)( (char *)__mptr - offsetof(type,member) ); \ 42 (type *)(void *)( (char *)__mptr - offsetof(type,member) ); \
43 }) 43 })
44 44
45typedef struct _E_Comp_Wl_Buffer E_Comp_Wl_Buffer; 45typedef struct _E_Comp_Wl_Buffer E_Comp_Wl_Buffer;