[prev in list] [next in list] [prev in thread] [next in thread] 

List:       enlightenment-devel
Subject:    [E-devel]  Patch valgrind deprecated macro
From:       Charles =?iso-8859-1?Q?Cl=E9ment?= <caratorn () gmail ! com>
Date:       2008-04-27 12:18:24
Message-ID: 20080427121824.GA4141 () sourdiere
[Download RAW message or body]

Hello,

When compiling ecore on a system that has valgrind installed it failed
because of a deprecated macro call: VALGRIND_MAKE_READABLE in the evas
library.

In the NEWS file distributed with valgrind, in the changes for the 3.2.0
version is stated:
- There are some changes to Memcheck's client requests.  Some of them
  have changed names:

  MAKE_NOACCESS  --> MAKE_MEM_NOACCESS
  MAKE_WRITABLE  --> MAKE_MEM_UNDEFINED
  MAKE_READABLE  --> MAKE_MEM_DEFINED

  CHECK_WRITABLE --> CHECK_MEM_IS_ADDRESSABLE
  CHECK_READABLE --> CHECK_MEM_IS_DEFINED
  CHECK_DEFINED  --> CHECK_VALUE_IS_DEFINED

These deprecated calls have been removed in the
Release 3.3.0 (7 December 2007)

A patch follows.
-- 
Charles Clément.

Index: evas/src/lib/engines/common/evas_image_main.c
===================================================================
--- evas.orig/src/lib/engines/common/evas_image_main.c
+++ evas/src/lib/engines/common/evas_image_main.c
@@ -157,7 +157,7 @@ _evas_common_rgba_image_surface_alloc(Im
    if (im->image.data == NULL) return -1;
 
 #ifdef HAVE_VALGRIND
-   VALGRIND_MAKE_READABLE(im->image.data, siz);
+   VALGRIND_MAKE_MEM_DEFINED(im->image.data, siz);
 #endif
 
    return 0;

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic