1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

memory: disable check with valgrind pool build

When lvm2 is build with valgrind pool detection - always disable
memcheck, since pool memory allocation are unconditionaly passed
into valgrind library.
This commit is contained in:
Zdenek Kabelac 2015-02-12 15:30:43 +01:00
parent 425c04e4dc
commit 9809038b9d

View File

@ -262,8 +262,10 @@ static int _maps_line(const struct dm_config_node *cn, lvmlock_t lock,
/*
* Valgrind is continually eating memory while executing code
* so we need to deactivate check of locked memory size
*/
*/
#ifndef VALGRIND_POOL
if (RUNNING_ON_VALGRIND)
#endif
sz -= sz; /* = 0, but avoids getting warning about dead assigment */
#endif