forked from enlightenment/efl
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:
parent
008711b3b0
commit
d04cd6af10
|
@ -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)))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue