summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-12 14:45:04 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-02-12 14:45:04 +0900
commitd04cd6af10688a0f54758e6acb0692bc256e78e9 (patch)
tree75131017d6ab9a8b2597a52829d2d4f21bcb78cd
parent008711b3b0f0b33e47e6b2fae7f925a0a9fb76ee (diff)
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.
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_inlist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eina/eina_inlist.h b/src/lib/eina/eina_inlist.h
index 09cec165a0..243e651088 100644
--- a/src/lib/eina/eina_inlist.h
+++ b/src/lib/eina/eina_inlist.h
@@ -415,7 +415,7 @@ struct _Eina_Inlist
415#define EINA_INLIST_GET(Inlist) (& ((Inlist)->__in_list)) 415#define EINA_INLIST_GET(Inlist) (& ((Inlist)->__in_list))
416/** Utility macro to get the container object of an inlist */ 416/** Utility macro to get the container object of an inlist */
417#define EINA_INLIST_CONTAINER_GET(ptr, \ 417#define EINA_INLIST_CONTAINER_GET(ptr, \
418 type) ((type *)((char *)ptr - \ 418 type) ((type *)(void *)((char *)ptr - \
419 offsetof(type, __in_list))) 419 offsetof(type, __in_list)))
420 420
421 421