From 0f21e4cfa74c2c9a5edc57c2cfedfdc39d4bb120 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Sun, 1 Dec 2013 13:52:53 +0900 Subject: [PATCH] eina - fix set-but-unused warning in eina_cow when valgrind off --- src/lib/eina/eina_cow.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) Eina_Cow_GC *gc; Eina_Iterator *it; Eina_Bool r; +#ifndef NVALGRIND Eina_Cow_Ptr *ref; +#endif EINA_COW_MAGIC_CHECK(cow); @@ -617,10 +619,10 @@ eina_cow_gc(Eina_Cow *cow) if (!r) return EINA_FALSE; /* Something did go wrong here */ +#ifndef NVALGRIND /* Do handle hash and all funky merge thing here */ ref = gc->ref; -#ifndef NVALGRIND VALGRIND_MAKE_MEM_DEFINED(ref, sizeof (*ref)); #endif _eina_cow_gc(cow, gc);