cedric pushed a commit to branch master.

commit c8b9e0540b2f03f3368d77587040ff23ad46a5ed
Author: Galatsanos 'godfath3r' Panagiotis <[email protected]>
Date:   Wed May 8 18:08:17 2013 +0900

    eina: fix a clang warning in eina_cow.
    
    Signed-off-by: Cedric Bail <[email protected]>
---
 src/lib/eina/eina_cow.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/lib/eina/eina_cow.c b/src/lib/eina/eina_cow.c
index 8010f62..28aa3d1 100644
--- a/src/lib/eina/eina_cow.c
+++ b/src/lib/eina/eina_cow.c
@@ -598,7 +598,6 @@ eina_cow_memcpy(Eina_Cow *cow,
 EAPI Eina_Bool
 eina_cow_gc(Eina_Cow *cow)
 {
-   Eina_Cow_Ptr *ref;
    Eina_Cow_GC *gc;
    Eina_Iterator *it;
    void *data;
@@ -619,11 +618,11 @@ eina_cow_gc(Eina_Cow *cow)
    data = EINA_COW_DATA_GET(gc->ref);
 
 #ifndef NVALGRIND
-   VALGRIND_MAKE_MEM_DEFINED(gc->ref, sizeof (*ref));
+   VALGRIND_MAKE_MEM_DEFINED(gc->ref, sizeof (Eina_Cow_Ptr));
 #endif
    _eina_cow_gc(cow, gc->ref, gc->dst, data);
 #ifndef NVALGRIND
-   VALGRIND_MAKE_MEM_NOACCESS(gc->ref, sizeof (*ref));
+   VALGRIND_MAKE_MEM_NOACCESS(gc->ref, sizeof (Eina_Cow_Ptr));
 #endif
 
    eina_hash_del(cow->togc, &gc->ref, gc);

-- 

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may

Reply via email to