From e95fc44ce594c80af76883a0398630d1865dea12 Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Mon, 14 Nov 2016 07:03:50 +0000 Subject: [PATCH] Add explicit (void) cast to result of unique_ptr::release() llvm-svn: 286796 --- clang/tools/libclang/CIndex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 98a6e70..b90da16 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/tools/libclang/CIndex.cpp @@ -7761,7 +7761,7 @@ CXTUResourceUsage clang_getCXTUResourceUsage(CXTranslationUnit TU) { CXTUResourceUsage usage = { (void*) entries.get(), (unsigned) entries->size(), !entries->empty() ? &(*entries)[0] : nullptr }; - entries.release(); + (void)entries.release(); return usage; } -- 2.7.4