From fb00e7fddc0e1d03cf26533a8b64c7778e5920ae Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 21 Dec 2010 08:05:36 +0100 Subject: add void casts to suppress "result unused" warnings (clang) --- src/poison.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/poison.h') 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 } -- cgit v1.2.3