aboutsummaryrefslogtreecommitdiff
path: root/src/poison.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/poison.h')
-rw-r--r--src/poison.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/poison.h b/src/poison.h
index 9c7052c9..3654f2e9 100644
--- a/src/poison.h
+++ b/src/poison.h
@@ -47,7 +47,7 @@ poison_noaccess(void *p, size_t length)
memset(p, 0x01, length);
#ifdef HAVE_VALGRIND_MEMCHECK_H
- VALGRIND_MAKE_MEM_NOACCESS(p, length);
+ (void)VALGRIND_MAKE_MEM_NOACCESS(p, length);
#endif
#endif
}
@@ -68,7 +68,7 @@ poison_undefined(void *p, size_t length)
memset(p, 0x02, length);
#ifdef HAVE_VALGRIND_MEMCHECK_H
- VALGRIND_MAKE_MEM_UNDEFINED(p, length);
+ (void)VALGRIND_MAKE_MEM_UNDEFINED(p, length);
#endif
#endif
}