forked from enlightenment/efl
eina: fix a clang warning in eina_cow.
Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
This commit is contained in:
parent
8f12f21cf0
commit
c8b9e0540b
|
@ -598,7 +598,6 @@ eina_cow_memcpy(Eina_Cow *cow,
|
||||||
EAPI Eina_Bool
|
EAPI Eina_Bool
|
||||||
eina_cow_gc(Eina_Cow *cow)
|
eina_cow_gc(Eina_Cow *cow)
|
||||||
{
|
{
|
||||||
Eina_Cow_Ptr *ref;
|
|
||||||
Eina_Cow_GC *gc;
|
Eina_Cow_GC *gc;
|
||||||
Eina_Iterator *it;
|
Eina_Iterator *it;
|
||||||
void *data;
|
void *data;
|
||||||
|
@ -619,11 +618,11 @@ eina_cow_gc(Eina_Cow *cow)
|
||||||
data = EINA_COW_DATA_GET(gc->ref);
|
data = EINA_COW_DATA_GET(gc->ref);
|
||||||
|
|
||||||
#ifndef NVALGRIND
|
#ifndef NVALGRIND
|
||||||
VALGRIND_MAKE_MEM_DEFINED(gc->ref, sizeof (*ref));
|
VALGRIND_MAKE_MEM_DEFINED(gc->ref, sizeof (Eina_Cow_Ptr));
|
||||||
#endif
|
#endif
|
||||||
_eina_cow_gc(cow, gc->ref, gc->dst, data);
|
_eina_cow_gc(cow, gc->ref, gc->dst, data);
|
||||||
#ifndef NVALGRIND
|
#ifndef NVALGRIND
|
||||||
VALGRIND_MAKE_MEM_NOACCESS(gc->ref, sizeof (*ref));
|
VALGRIND_MAKE_MEM_NOACCESS(gc->ref, sizeof (Eina_Cow_Ptr));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
eina_hash_del(cow->togc, &gc->ref, gc);
|
eina_hash_del(cow->togc, &gc->ref, gc);
|
||||||
|
|
Loading…
Reference in New Issue