chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24fdc23
)
build-sys: use VALGRIND not __OPTIMIZE__ as condition for valgrind compat
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Thu, 6 Dec 2012 12:23:16 +0000
(13:23 +0100)
committer
Zbigniew 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
patch
|
blob
|
history
diff --git
a/src/shared/hashmap.c
b/src/shared/hashmap.c
index dcfbb67228e826b21260d4d995ca6ed3a5494bfb..a2c728d642540bab342e1c989924bb0e4d0ae721 100644
(file)
--- a/
src/shared/hashmap.c
+++ b/
src/shared/hashmap.c
@@
-103,7
+103,7
@@
static void deallocate_tile(void **first_tile, void *p) {
*first_tile = p;
}
-#if
ndef __OPTIMIZE__
+#if
def VALGRIND
static void drop_pool(struct pool *p) {
while (p) {