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:
parent
425c04e4dc
commit
9809038b9d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user