aboutsummaryrefslogtreecommitdiffstats
path: root/src/poison.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-12-21 08:05:36 +0100
committerMax Kellermann <max@duempel.org>2010-12-21 08:06:02 +0100
commitfb00e7fddc0e1d03cf26533a8b64c7778e5920ae (patch)
tree0e60fe558eb79f4074cb8b29ebf22aece9ca4aa0 /src/poison.h
parent41fdcf328c0a08fe9adb4007a60c007167054862 (diff)
downloadmpd-fb00e7fddc0e1d03cf26533a8b64c7778e5920ae.tar.gz
mpd-fb00e7fddc0e1d03cf26533a8b64c7778e5920ae.tar.xz
mpd-fb00e7fddc0e1d03cf26533a8b64c7778e5920ae.zip
add void casts to suppress "result unused" warnings (clang)
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 9c7052c91..3654f2e9c 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
}