chiark / gitweb /
build-sys: use VALGRIND not __OPTIMIZE__ as condition for valgrind compat
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 6 Dec 2012 12:23:16 +0000 (13:23 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 6 Jan 2013 18:52:47 +0000 (13:52 -0500)
Actually, one might want to run valgrind even on optimized code.
Now the same check is used in the jenkins hash functions and
hashtable.

src/shared/hashmap.c

index dcfbb67228e826b21260d4d995ca6ed3a5494bfb..a2c728d642540bab342e1c989924bb0e4d0ae721 100644 (file)
@@ -103,7 +103,7 @@ static void deallocate_tile(void **first_tile, void *p) {
         *first_tile = p;
 }
 
-#ifndef __OPTIMIZE__
+#ifdef VALGRIND
 
 static void drop_pool(struct pool *p) {
         while (p) {