eina inlist - cast container via void ptr to avoid warnings

we really can't do much here but our direct casting causes warnings in
apps or anyone using this macro so keep things silent as our pointer
tricks are actually ok but the compiler can't figure it out.
This commit is contained in:
Carsten Haitzler 2017-02-12 14:45:04 +09:00
parent 008711b3b0
commit d04cd6af10
1 changed files with 1 additions and 1 deletions

View File

@ -415,7 +415,7 @@ struct _Eina_Inlist
#define EINA_INLIST_GET(Inlist) (& ((Inlist)->__in_list))
/** Utility macro to get the container object of an inlist */
#define EINA_INLIST_CONTAINER_GET(ptr, \
type) ((type *)((char *)ptr - \
type) ((type *)(void *)((char *)ptr - \
offsetof(type, __in_list)))