diff --git a/lib/Support/Valgrind.cpp b/lib/Support/Valgrind.cpp index 703448524ed..2e57eb75c30 100644 --- a/lib/Support/Valgrind.cpp +++ b/lib/Support/Valgrind.cpp @@ -39,7 +39,7 @@ void llvm::sys::ValgrindDiscardTranslations(const void *Addr, size_t Len) { if (NotUnderValgrind) return; - VALGRIND_DISCARD_TRANSLATIONS(Addr, Len); + (void)VALGRIND_DISCARD_TRANSLATIONS(Addr, Len); } #else // !HAVE_VALGRIND_VALGRIND_H