diff --git a/libdm/mm/dbg_malloc.c b/libdm/mm/dbg_malloc.c index db7f5f3ed..5f06d1e27 100644 --- a/libdm/mm/dbg_malloc.c +++ b/libdm/mm/dbg_malloc.c @@ -15,6 +15,8 @@ #include "dmlib.h" +#ifdef DEBUG_MEM + #include #include @@ -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))) {