summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-01 13:52:53 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-01 13:52:53 +0900
commit0f21e4cfa74c2c9a5edc57c2cfedfdc39d4bb120 (patch)
tree76600fc615ddd9edc131431c5c647ae2871fe868
parent16e5af8e4c945b0da679fe67f3312490774d0283 (diff)
eina - fix set-but-unused warning in eina_cow when valgrind off
-rw-r--r--src/lib/eina/eina_cow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/eina/eina_cow.c b/src/lib/eina/eina_cow.c
index 2b1a3e502f..73a65e5f30 100644
--- a/src/lib/eina/eina_cow.c
+++ b/src/lib/eina/eina_cow.c
@@ -604,7 +604,9 @@ eina_cow_gc(Eina_Cow *cow)
604 Eina_Cow_GC *gc; 604 Eina_Cow_GC *gc;
605 Eina_Iterator *it; 605 Eina_Iterator *it;
606 Eina_Bool r; 606 Eina_Bool r;
607#ifndef NVALGRIND
607 Eina_Cow_Ptr *ref; 608 Eina_Cow_Ptr *ref;
609#endif
608 610
609 EINA_COW_MAGIC_CHECK(cow); 611 EINA_COW_MAGIC_CHECK(cow);
610 612
@@ -617,10 +619,10 @@ eina_cow_gc(Eina_Cow *cow)
617 619
618 if (!r) return EINA_FALSE; /* Something did go wrong here */ 620 if (!r) return EINA_FALSE; /* Something did go wrong here */
619 621
622#ifndef NVALGRIND
620 /* Do handle hash and all funky merge thing here */ 623 /* Do handle hash and all funky merge thing here */
621 ref = gc->ref; 624 ref = gc->ref;
622 625
623#ifndef NVALGRIND
624 VALGRIND_MAKE_MEM_DEFINED(ref, sizeof (*ref)); 626 VALGRIND_MAKE_MEM_DEFINED(ref, sizeof (*ref));
625#endif 627#endif
626 _eina_cow_gc(cow, gc); 628 _eina_cow_gc(cow, gc);