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

Compile code for memory debuging only with DEBUG_MEM

When it's not in use - do not compile this code.
Improves lcov code coverage results for this code a lot :)
This commit is contained in:
Zdenek Kabelac 2011-01-28 16:01:32 +00:00
parent 7fa7632dc7
commit bc49609c6f

View File

@ -15,6 +15,8 @@
#include "dmlib.h"
#ifdef DEBUG_MEM
#include <assert.h>
#include <stdarg.h>
@ -249,6 +251,8 @@ void dm_bounds_check_debug(void)
}
}
#endif
void *dm_malloc_aux(size_t s, const char *file __attribute__((unused)),
int line __attribute__((unused)))
{