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.
This commit is contained in:
Carsten Haitzler 2017-02-12 15:20:23 +09:00
parent 8c70210ee6
commit 8c87fe514d
1 changed files with 1 additions and 1 deletions

View File

@ -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;